"git@developer.sourcefind.cn:OpenDAS/torchani.git" did not exist on "3cced1e689d447c5411b2c459f97c3278b211c9c"
Commit affd1906 authored by Casper Hansen's avatar Casper Hansen
Browse files

Correct example

parent 219ccb33
......@@ -4,7 +4,7 @@ from transformers import AutoTokenizer, TextStreamer
quant_path = "casperhansen/opt-125m-awq"
# Load model
model = AutoAWQForCausalLM.from_quantized(quant_path, fuse_layers=True, use_safetensors=True)
model = AutoAWQForCausalLM.from_quantized(quant_path, fuse_layers=True, safetensors=True)
tokenizer = AutoTokenizer.from_pretrained(quant_path, trust_remote_code=True)
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment