vltnmmdv commited on
Commit
05794df
·
verified ·
1 Parent(s): 69c6347

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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, torch_dtype=torch.bfloat16, device_map="auto")
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 = [