Yechao commited on
Commit
e2c169c
·
verified ·
1 Parent(s): a568322

docs: present release as MemGhost

Browse files
Files changed (1) hide show
  1. README.md +5 -6
README.md CHANGED
@@ -4,14 +4,13 @@ base_model: Qwen/Qwen3-4B
4
  library_name: peft
5
  tags:
6
  - memghost
7
- - memg
8
  - whisperbench
9
  - agent-security
10
  ---
11
 
12
- # MemG
13
 
14
- MemG is the released PEFT LoRA adapter for the MemGhost paper artifact. It loads on top of `Qwen/Qwen3-4B` and is intended for controlled WhisperBench reproduction and analysis.
15
 
16
  Adapter SHA256: `85cad4f606b002797a102e55fae31a39df22b2d4a0d07bc1fcbca51fb1bbe572`.
17
 
@@ -30,16 +29,16 @@ from peft import PeftModel
30
  from transformers import AutoModelForCausalLM, AutoTokenizer
31
 
32
  base_id = "Qwen/Qwen3-4B"
33
- memg_id = "Yechao/MemG"
34
 
35
- tokenizer = AutoTokenizer.from_pretrained(memg_id, trust_remote_code=True)
36
  base = AutoModelForCausalLM.from_pretrained(
37
  base_id,
38
  torch_dtype=torch.bfloat16,
39
  device_map="auto",
40
  trust_remote_code=True,
41
  )
42
- model = PeftModel.from_pretrained(base, memg_id)
43
  model.eval()
44
  ```
45
 
 
4
  library_name: peft
5
  tags:
6
  - memghost
 
7
  - whisperbench
8
  - agent-security
9
  ---
10
 
11
+ # MemGhost
12
 
13
+ MemGhost is the released PEFT LoRA adapter for the MemGhost paper artifact. It loads on top of `Qwen/Qwen3-4B` and is intended for controlled WhisperBench reproduction and analysis.
14
 
15
  Adapter SHA256: `85cad4f606b002797a102e55fae31a39df22b2d4a0d07bc1fcbca51fb1bbe572`.
16
 
 
29
  from transformers import AutoModelForCausalLM, AutoTokenizer
30
 
31
  base_id = "Qwen/Qwen3-4B"
32
+ memghost_id = "Yechao/MemGhost"
33
 
34
+ tokenizer = AutoTokenizer.from_pretrained(memghost_id, trust_remote_code=True)
35
  base = AutoModelForCausalLM.from_pretrained(
36
  base_id,
37
  torch_dtype=torch.bfloat16,
38
  device_map="auto",
39
  trust_remote_code=True,
40
  )
41
+ model = PeftModel.from_pretrained(base, memghost_id)
42
  model.eval()
43
  ```
44