Spaces:
Runtime error
Runtime error
Remove quantization_config entirely to avoid bitsandbytes dependency
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from transformers import BitsAndBytesConfig
|
|
| 10 |
original_model = AutoModelForCausalLM.from_pretrained(
|
| 11 |
"unsloth/DeepSeek-R1-Distill-Llama-8B-unsloth-bnb-4bit",
|
| 12 |
load_in_4bit=False, # Disable 4-bit quantization
|
| 13 |
-
|
| 14 |
)
|
| 15 |
original_tokenizer = AutoTokenizer.from_pretrained("unsloth/DeepSeek-R1-Distill-Llama-8B-unsloth-bnb-4bit")
|
| 16 |
|
|
@@ -18,7 +18,7 @@ original_tokenizer = AutoTokenizer.from_pretrained("unsloth/DeepSeek-R1-Distill-
|
|
| 18 |
fine_tuned_model = AutoModelForCausalLM.from_pretrained(
|
| 19 |
"kas1/DeepSeek-R1-Distill-Llama-8B-unsloth-bnb-4bit-John1",
|
| 20 |
load_in_4bit=False, # Disable 4-bit quantization
|
| 21 |
-
|
| 22 |
)
|
| 23 |
fine_tuned_tokenizer = AutoTokenizer.from_pretrained("kas1/DeepSeek-R1-Distill-Llama-8B-unsloth-bnb-4bit-John1")
|
| 24 |
|
|
|
|
| 10 |
original_model = AutoModelForCausalLM.from_pretrained(
|
| 11 |
"unsloth/DeepSeek-R1-Distill-Llama-8B-unsloth-bnb-4bit",
|
| 12 |
load_in_4bit=False, # Disable 4-bit quantization
|
| 13 |
+
# Remove quantization_config entirely
|
| 14 |
)
|
| 15 |
original_tokenizer = AutoTokenizer.from_pretrained("unsloth/DeepSeek-R1-Distill-Llama-8B-unsloth-bnb-4bit")
|
| 16 |
|
|
|
|
| 18 |
fine_tuned_model = AutoModelForCausalLM.from_pretrained(
|
| 19 |
"kas1/DeepSeek-R1-Distill-Llama-8B-unsloth-bnb-4bit-John1",
|
| 20 |
load_in_4bit=False, # Disable 4-bit quantization
|
| 21 |
+
# Remove quantization_config entirely
|
| 22 |
)
|
| 23 |
fine_tuned_tokenizer = AutoTokenizer.from_pretrained("kas1/DeepSeek-R1-Distill-Llama-8B-unsloth-bnb-4bit-John1")
|
| 24 |
|