mod gemma
This commit is contained in:
parent
51828191cc
commit
310c882b1d
2
gemma.py
2
gemma.py
|
|
@ -38,7 +38,7 @@ dataset = create_training_data()
|
||||||
|
|
||||||
# 5️⃣ Ładowanie modelu Gemma 2 7B
|
# 5️⃣ Ładowanie modelu Gemma 2 7B
|
||||||
device = "cuda" if torch.cuda.is_available() else "cpu"
|
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)
|
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16).to(device)
|
||||||
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue