Spaces:
Sleeping
Sleeping
Commit
·
c58fada
1
Parent(s):
ebfdc68
fixed tensor types
Browse files- app.py +1 -0
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -28,6 +28,7 @@ def load_model():
|
|
| 28 |
model = AutoModelForCausalLM.from_pretrained(
|
| 29 |
MODEL_NAME,
|
| 30 |
trust_remote_code=True,
|
|
|
|
| 31 |
device_map="auto",
|
| 32 |
attn_implementation="eager",
|
| 33 |
use_cache=True,
|
|
|
|
| 28 |
model = AutoModelForCausalLM.from_pretrained(
|
| 29 |
MODEL_NAME,
|
| 30 |
trust_remote_code=True,
|
| 31 |
+
torch_dtype=torch.float16,
|
| 32 |
device_map="auto",
|
| 33 |
attn_implementation="eager",
|
| 34 |
use_cache=True,
|
requirements.txt
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
torch>=2.0.0,<2.3.0
|
| 2 |
transformers==4.48.0
|
| 3 |
accelerate>=0.20.0
|
|
|
|
| 4 |
gradio>=4.0.0,<5.0.0
|
| 5 |
safetensors>=0.4.0
|
|
|
|
| 1 |
torch>=2.0.0,<2.3.0
|
| 2 |
transformers==4.48.0
|
| 3 |
accelerate>=0.20.0
|
| 4 |
+
bitsandbytes>=0.41.0
|
| 5 |
gradio>=4.0.0,<5.0.0
|
| 6 |
safetensors>=0.4.0
|