Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
from transformers import AutoTokenizer
from gptqmodel import GPTQModel
model_name = "ModelCloud/Meta-Llama-3.1-405B-Instruct-gptq-4bit"
prompt = [{"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)
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)
Meta-Llama-3.1-405B-Instruct-gptq-4bit huggingface.co is an AI model on huggingface.co that provides Meta-Llama-3.1-405B-Instruct-gptq-4bit's model effect (), which can be used instantly with this ModelCloud Meta-Llama-3.1-405B-Instruct-gptq-4bit model. huggingface.co supports a free trial of the Meta-Llama-3.1-405B-Instruct-gptq-4bit model, and also provides paid use of the Meta-Llama-3.1-405B-Instruct-gptq-4bit. Support call Meta-Llama-3.1-405B-Instruct-gptq-4bit model through api, including Node.js, Python, http.
Meta-Llama-3.1-405B-Instruct-gptq-4bit huggingface.co is an online trial and call api platform, which integrates Meta-Llama-3.1-405B-Instruct-gptq-4bit's modeling effects, including api services, and provides a free online trial of Meta-Llama-3.1-405B-Instruct-gptq-4bit, you can try Meta-Llama-3.1-405B-Instruct-gptq-4bit online for free by clicking the link below.
ModelCloud Meta-Llama-3.1-405B-Instruct-gptq-4bit online free url in huggingface.co:
Meta-Llama-3.1-405B-Instruct-gptq-4bit is an open source model from GitHub that offers a free installation service, and any user can find Meta-Llama-3.1-405B-Instruct-gptq-4bit on GitHub to install. At the same time, huggingface.co provides the effect of Meta-Llama-3.1-405B-Instruct-gptq-4bit install, users can directly use Meta-Llama-3.1-405B-Instruct-gptq-4bit installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Meta-Llama-3.1-405B-Instruct-gptq-4bit install url in huggingface.co: