from transformers import AutoTokenizer
from gptqmodel import GPTQModel
model_name = "ModelCloud/EXAONE-3.0-7.8B-Instruct-gptq-4bit"
prompt = [
{"role": "system",
"content": "You are EXAONE model from LG AI Research, a helpful assistant."},
{"role": "user", "content": "I am in Shanghai, preparing to visit the natural history museum. Can you tell me the best way to"}
]
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = GPTQModel.from_quantized(model_name, trust_remote_code=True)
input_tensor = tokenizer.apply_chat_template(prompt, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(input_ids=input_tensor.to(model.device), max_new_tokens=100)
result = tokenizer.decode(outputs[0][input_tensor.shape[1]:], skip_special_tokens=True)
print(result)
Runs of ModelCloud EXAONE-3.0-7.8B-Instruct-gptq-4bit on huggingface.co
17
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
10
30-day runs
More Information About EXAONE-3.0-7.8B-Instruct-gptq-4bit huggingface.co Model
EXAONE-3.0-7.8B-Instruct-gptq-4bit huggingface.co
EXAONE-3.0-7.8B-Instruct-gptq-4bit huggingface.co is an AI model on huggingface.co that provides EXAONE-3.0-7.8B-Instruct-gptq-4bit's model effect (), which can be used instantly with this ModelCloud EXAONE-3.0-7.8B-Instruct-gptq-4bit model. huggingface.co supports a free trial of the EXAONE-3.0-7.8B-Instruct-gptq-4bit model, and also provides paid use of the EXAONE-3.0-7.8B-Instruct-gptq-4bit. Support call EXAONE-3.0-7.8B-Instruct-gptq-4bit model through api, including Node.js, Python, http.
EXAONE-3.0-7.8B-Instruct-gptq-4bit huggingface.co is an online trial and call api platform, which integrates EXAONE-3.0-7.8B-Instruct-gptq-4bit's modeling effects, including api services, and provides a free online trial of EXAONE-3.0-7.8B-Instruct-gptq-4bit, you can try EXAONE-3.0-7.8B-Instruct-gptq-4bit online for free by clicking the link below.
ModelCloud EXAONE-3.0-7.8B-Instruct-gptq-4bit online free url in huggingface.co:
EXAONE-3.0-7.8B-Instruct-gptq-4bit is an open source model from GitHub that offers a free installation service, and any user can find EXAONE-3.0-7.8B-Instruct-gptq-4bit on GitHub to install. At the same time, huggingface.co provides the effect of EXAONE-3.0-7.8B-Instruct-gptq-4bit install, users can directly use EXAONE-3.0-7.8B-Instruct-gptq-4bit installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
EXAONE-3.0-7.8B-Instruct-gptq-4bit install url in huggingface.co: