sammysun0711
commited on
Commit
·
4e484e3
1
Parent(s):
a56f63c
Update README.md
Browse files
README.md
CHANGED
@@ -15,8 +15,10 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
15 |
tokenizer = AutoTokenizer.from_pretrained('sammysun0711/aquilachat-7b-hf')
|
16 |
model = AutoModelForCausalLM.from_pretrained('sammysun0711/aquilachat-7b-hf', trust_remote_code=True)
|
17 |
model = model.eval()
|
18 |
-
# from optimum import ORTModelForCausalLM
|
19 |
# model = ORTModelForCausalLM.from_pretrained('sammysun0711/aquilachat-7b-hf', export=True, use_cache=True, trust_remote_code=True)
|
|
|
|
|
20 |
# model = OVModelForCausalLM.from_pretrained('sammysun0711/aquilachat-7b-hf', export=True, use_cache=True, trust_remote_code=True)
|
21 |
|
22 |
question = '北京为什么是中国的首都?'
|
|
|
15 |
tokenizer = AutoTokenizer.from_pretrained('sammysun0711/aquilachat-7b-hf')
|
16 |
model = AutoModelForCausalLM.from_pretrained('sammysun0711/aquilachat-7b-hf', trust_remote_code=True)
|
17 |
model = model.eval()
|
18 |
+
# from optimum.onnxruntime import ORTModelForCausalLM
|
19 |
# model = ORTModelForCausalLM.from_pretrained('sammysun0711/aquilachat-7b-hf', export=True, use_cache=True, trust_remote_code=True)
|
20 |
+
|
21 |
+
# from optimum.intel import OVModelForCausalLM
|
22 |
# model = OVModelForCausalLM.from_pretrained('sammysun0711/aquilachat-7b-hf', export=True, use_cache=True, trust_remote_code=True)
|
23 |
|
24 |
question = '北京为什么是中国的首都?'
|