Spaces:
Runtime error
Runtime error
Update app.py
Browse filesunsloth/gemma-3-270m-it
app.py
CHANGED
|
@@ -29,7 +29,8 @@ MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
|
| 29 |
|
| 30 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
| 31 |
|
| 32 |
-
model_id = "google/gemma-3-270m-it"
|
|
|
|
| 33 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True,)
|
| 34 |
model = AutoModelForCausalLM.from_pretrained(
|
| 35 |
model_id,
|
|
|
|
| 29 |
|
| 30 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
| 31 |
|
| 32 |
+
# model_id = "google/gemma-3-270m-it"
|
| 33 |
+
model_id = "unsloth/gemma-3-270m-it"
|
| 34 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True,)
|
| 35 |
model = AutoModelForCausalLM.from_pretrained(
|
| 36 |
model_id,
|