from transformers import AutoTokenizer
from gptqmodel import GPTQModel
tokenizer = AutoTokenizer.from_pretrained("ModelCloud/QwQ-32B-Preview-gptqmodel-4bit-vortex-v2")
model = GPTQModel.load("ModelCloud/QwQ-32B-Preview-gptqmodel-4bit-vortex-v2")
messages = [
{"role": "system", "content": "You are a helpful and harmless assistant. You are Qwen developed by Alibaba. You should think step-by-step."},
{"role": "user", "content": "How can I design a data structure in C++ to store the top 5 largest integer numbers?"},
]
input_tensor = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(input_ids=input_tensor.to(model.device), max_new_tokens=512)
result = tokenizer.decode(outputs[0][input_tensor.shape[1]:], skip_special_tokens=True)
print(result)
Runs of ModelCloud QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 on huggingface.co
2
Total runs
0
24-hour runs
0
3-day runs
-2
7-day runs
0
30-day runs
More Information About QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 huggingface.co Model
More QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 license Visit here:
QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 huggingface.co is an AI model on huggingface.co that provides QwQ-32B-Preview-gptqmodel-4bit-vortex-v2's model effect (), which can be used instantly with this ModelCloud QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 model. huggingface.co supports a free trial of the QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 model, and also provides paid use of the QwQ-32B-Preview-gptqmodel-4bit-vortex-v2. Support call QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 model through api, including Node.js, Python, http.
QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 huggingface.co is an online trial and call api platform, which integrates QwQ-32B-Preview-gptqmodel-4bit-vortex-v2's modeling effects, including api services, and provides a free online trial of QwQ-32B-Preview-gptqmodel-4bit-vortex-v2, you can try QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 online for free by clicking the link below.
ModelCloud QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 online free url in huggingface.co:
QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 is an open source model from GitHub that offers a free installation service, and any user can find QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 on GitHub to install. At the same time, huggingface.co provides the effect of QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 install, users can directly use QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
QwQ-32B-Preview-gptqmodel-4bit-vortex-v2 install url in huggingface.co: