Update app.py
Browse files
app.py
CHANGED
|
@@ -3,11 +3,12 @@ import torch
|
|
| 3 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 4 |
from peft import PeftModel
|
| 5 |
|
|
|
|
|
|
|
| 6 |
# --- Configuration ---
|
| 7 |
-
# ⚠️
|
| 8 |
BASE_MODEL_ID = "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
|
| 9 |
-
ADAPTER_MODEL_ID = "
|
| 10 |
-
|
| 11 |
# Define the instruction template used during fine-tuning (Step 5)
|
| 12 |
INSTRUCTION_TEMPLATE = "<|system|>\nSolve the following math problem:</s>\n<|user|>\n{}</s>\n<|assistant|>"
|
| 13 |
|
|
|
|
| 3 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 4 |
from peft import PeftModel
|
| 5 |
|
| 6 |
+
# app.py snippet
|
| 7 |
+
|
| 8 |
# --- Configuration ---
|
| 9 |
+
# ⚠️ YOUR USERNAME IS NOW SET
|
| 10 |
BASE_MODEL_ID = "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
|
| 11 |
+
ADAPTER_MODEL_ID = "Vivek16/Root_Math-TinyLlama-CPU" # <-- Replace 'Vivek16' with your actual username
|
|
|
|
| 12 |
# Define the instruction template used during fine-tuning (Step 5)
|
| 13 |
INSTRUCTION_TEMPLATE = "<|system|>\nSolve the following math problem:</s>\n<|user|>\n{}</s>\n<|assistant|>"
|
| 14 |
|