Update README.md
Browse files
README.md
CHANGED
@@ -26,7 +26,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
|
|
26 |
|
27 |
model_name = "ai-sage/GigaChat-20B-A3B-instruct-int8"
|
28 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
29 |
-
model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True,
|
30 |
model.generation_config = GenerationConfig.from_pretrained(model_name)
|
31 |
|
32 |
messages = [
|
|
|
26 |
|
27 |
model_name = "ai-sage/GigaChat-20B-A3B-instruct-int8"
|
28 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
29 |
+
model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, device_map="auto")
|
30 |
model.generation_config = GenerationConfig.from_pretrained(model_name)
|
31 |
|
32 |
messages = [
|