mod gemma

This commit is contained in:
l.gabrysiak 2025-02-26 13:19:09 +01:00
parent 51828191cc
commit 310c882b1d
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ dataset = create_training_data()
# 5⃣ Ładowanie modelu Gemma 2 7B
device = "cuda" if torch.cuda.is_available() else "cpu"
model_name = "google/gemma-2b"
model_name = "google/gemma-2-2b"
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16).to(device)
tokenizer = AutoTokenizer.from_pretrained(model_name)