star-ga commited on
Commit
e2a77aa
·
verified ·
1 Parent(s): 6815037

docs: card fixes — full-FT (was QLoRA), library_name=transformers, drop qlora tag

Browse files
Files changed (1) hide show
  1. README.md +12 -12
README.md CHANGED
@@ -2,13 +2,13 @@
2
  language:
3
  - en
4
  license: apache-2.0
5
- library_name: peft
6
  tags:
7
  - mind-mem
8
  - memory
9
  - governance
10
  - retrieval-augmented
11
- - qlora
12
  - qwen3.5
13
  - text-generation
14
  - conversational
@@ -20,7 +20,7 @@ pipeline_tag: text-generation
20
 
21
  A governance-aware memory-assistant model for [mind-mem](https://github.com/star-ga/mind-mem) — an auditable, contradiction-safe memory layer for coding agents (MCP-compatible).
22
 
23
- This checkpoint is a **QLoRA fine-tune** of `Qwen/Qwen3.5-4B`, trained on the mind-mem v3.9.0 source tree: all **81 MCP tool signatures** (24 new in the v3.4 → v3.9 surface — incl. `compile_truth_walkthrough`, `recall_with_persona`, `pipeline_status`, `reindex_dirty`, MIC/MAP wire format, governance hooks, kernels), block-type schemas (with the new `TransformHash` field, v3.9), full CHANGELOG history through v3.9.0, the docs/ tree, and curated end-to-end governance workflow transcripts.
24
 
25
  ## What's new in v3.9 vs. v3.0
26
 
@@ -49,18 +49,15 @@ The v3.0 fine-tune did not know about any of these surfaces; this revision resto
49
 
50
  ## Usage
51
 
52
- ### Load the adapter (bf16 base + LoRA)
53
 
54
  ```python
55
- from peft import PeftModel
56
  from transformers import AutoModelForCausalLM, AutoTokenizer
57
 
58
- BASE = "Qwen/Qwen3.5-4B"
59
- ADAPTER = "star-ga/mind-mem-4b"
60
 
61
- tokenizer = AutoTokenizer.from_pretrained(BASE)
62
- base = AutoModelForCausalLM.from_pretrained(BASE, torch_dtype="bfloat16", device_map="auto")
63
- model = PeftModel.from_pretrained(base, ADAPTER)
64
 
65
  messages = [
66
  {"role": "system", "content": "You are mind-mem-4b, a memory-governance assistant."},
@@ -83,10 +80,13 @@ llama-cli -m ./gguf/mind-mem-4b-Q4_K_M.gguf -p "Show me a TransformHash block te
83
 
84
  ### Pin a prior revision
85
 
86
- The v3.0 fine-tune is preserved as a HF revision tag:
87
 
88
  ```python
89
- PeftModel.from_pretrained(base, "star-ga/mind-mem-4b", revision="v3.0.0")
 
 
 
90
  ```
91
 
92
  ## Training recipe
 
2
  language:
3
  - en
4
  license: apache-2.0
5
+ library_name: transformers
6
  tags:
7
  - mind-mem
8
  - memory
9
  - governance
10
  - retrieval-augmented
11
+ - full-fine-tune
12
  - qwen3.5
13
  - text-generation
14
  - conversational
 
20
 
21
  A governance-aware memory-assistant model for [mind-mem](https://github.com/star-ga/mind-mem) — an auditable, contradiction-safe memory layer for coding agents (MCP-compatible).
22
 
23
+ This checkpoint is a **full fine-tune** of `Qwen/Qwen3.5-4B` (every one of the ~4 B parameters trained), trained on the mind-mem v3.9.0 source tree: all **81 MCP tool signatures** (24 new in the v3.4 → v3.9 surface — incl. `compile_truth_walkthrough`, `recall_with_persona`, `pipeline_status`, `reindex_dirty`, MIC/MAP wire format, governance hooks, kernels), block-type schemas (with the new `TransformHash` field, v3.9), full CHANGELOG history through v3.9.0, the docs/ tree, and curated end-to-end governance workflow transcripts.
24
 
25
  ## What's new in v3.9 vs. v3.0
26
 
 
49
 
50
  ## Usage
51
 
52
+ ### Load the model (bf16 full fine-tune)
53
 
54
  ```python
 
55
  from transformers import AutoModelForCausalLM, AutoTokenizer
56
 
57
+ REPO = "star-ga/mind-mem-4b"
 
58
 
59
+ tokenizer = AutoTokenizer.from_pretrained(REPO)
60
+ model = AutoModelForCausalLM.from_pretrained(REPO, dtype="bfloat16", device_map="auto")
 
61
 
62
  messages = [
63
  {"role": "system", "content": "You are mind-mem-4b, a memory-governance assistant."},
 
80
 
81
  ### Pin a prior revision
82
 
83
+ The v3.0 QLoRA fine-tune is preserved as a HF revision tag:
84
 
85
  ```python
86
+ from peft import PeftModel
87
+ from transformers import AutoModelForCausalLM
88
+ base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-4B", dtype="bfloat16", device_map="auto")
89
+ model = PeftModel.from_pretrained(base, "star-ga/mind-mem-4b", revision="v3.0.0")
90
  ```
91
 
92
  ## Training recipe