Spaces:
Paused
Paused
Commit
·
80150e9
1
Parent(s):
c1bb08d
Test w/o 8bit
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ checkpoint = 1200
|
|
| 7 |
|
| 8 |
# Load your fine-tuned model and tokenizer
|
| 9 |
tokenizer = t.AutoTokenizer.from_pretrained("NousResearch/Llama-2-7b-hf")
|
| 10 |
-
model = t.AutoModelForCausalLM.from_pretrained("NousResearch/Llama-2-7b-hf"
|
| 11 |
tokenizer.pad_token_id = 0
|
| 12 |
|
| 13 |
config = peft.LoraConfig(r=8, lora_alpha=16, target_modules=["q_proj", "v_proj"], lora_dropout=0.005, bias="none", task_type="CAUSAL_LM")
|
|
|
|
| 7 |
|
| 8 |
# Load your fine-tuned model and tokenizer
|
| 9 |
tokenizer = t.AutoTokenizer.from_pretrained("NousResearch/Llama-2-7b-hf")
|
| 10 |
+
model = t.AutoModelForCausalLM.from_pretrained("NousResearch/Llama-2-7b-hf")
|
| 11 |
tokenizer.pad_token_id = 0
|
| 12 |
|
| 13 |
config = peft.LoraConfig(r=8, lora_alpha=16, target_modules=["q_proj", "v_proj"], lora_dropout=0.005, bias="none", task_type="CAUSAL_LM")
|