Update README.md
Browse files
README.md
CHANGED
@@ -15,8 +15,8 @@ import torch
|
|
15 |
torch.manual_seed(42)
|
16 |
|
17 |
model_name = "t-tech/T-lite-it-1.0"
|
18 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name
|
19 |
-
model = AutoModelForCausalLM.from_pretrained(model_name,
|
20 |
|
21 |
prompt = "Напиши стих про машинное обучение"
|
22 |
messages = [
|
|
|
15 |
torch.manual_seed(42)
|
16 |
|
17 |
model_name = "t-tech/T-lite-it-1.0"
|
18 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
19 |
+
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")
|
20 |
|
21 |
prompt = "Напиши стих про машинное обучение"
|
22 |
messages = [
|