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