Text Generation
Transformers
Safetensors
qwen2
mergekit
Merge
conversational
text-generation-inference
Instructions to use gbueno86/QwQ-R1-Distill-Merge-32B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gbueno86/QwQ-R1-Distill-Merge-32B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gbueno86/QwQ-R1-Distill-Merge-32B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gbueno86/QwQ-R1-Distill-Merge-32B") model = AutoModelForCausalLM.from_pretrained("gbueno86/QwQ-R1-Distill-Merge-32B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gbueno86/QwQ-R1-Distill-Merge-32B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gbueno86/QwQ-R1-Distill-Merge-32B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gbueno86/QwQ-R1-Distill-Merge-32B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/gbueno86/QwQ-R1-Distill-Merge-32B
- SGLang
How to use gbueno86/QwQ-R1-Distill-Merge-32B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "gbueno86/QwQ-R1-Distill-Merge-32B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gbueno86/QwQ-R1-Distill-Merge-32B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "gbueno86/QwQ-R1-Distill-Merge-32B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gbueno86/QwQ-R1-Distill-Merge-32B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use gbueno86/QwQ-R1-Distill-Merge-32B with Docker Model Runner:
docker model run hf.co/gbueno86/QwQ-R1-Distill-Merge-32B
Commit History
-
Upload config.json
Verified signaturea7d2d0c -
Update README.md
Verified signatureec496dd -
Update README.md
Verified signature1bd87ad -
Upload README.md
Verified signaturec4fa744 -
Upload 4 files
Verified signaturede57461 -
Upload model-00066-of-00066.safetensors with huggingface_hub
Verified signature4f6fb76 -
Upload model-00065-of-00066.safetensors with huggingface_hub
Verified signature131d60d -
Upload model-00064-of-00066.safetensors with huggingface_hub
Verified signature8cfe8b1 -
Upload model-00062-of-00066.safetensors with huggingface_hub
Verified signature17e150d -
Upload model-00063-of-00066.safetensors with huggingface_hub
Verified signature2becbcd -
Upload model-00060-of-00066.safetensors with huggingface_hub
Verified signature4fe2764 -
Upload model-00061-of-00066.safetensors with huggingface_hub
Verified signature59783c1 -
Upload model-00058-of-00066.safetensors with huggingface_hub
Verified signatureb987e41 -
Upload model-00059-of-00066.safetensors with huggingface_hub
Verified signature2785387 -
Upload model-00056-of-00066.safetensors with huggingface_hub
Verified signature73518e3 -
Upload model-00057-of-00066.safetensors with huggingface_hub
Verified signaturee25b28f -
Upload model-00054-of-00066.safetensors with huggingface_hub
Verified signature088420b -
Upload model-00055-of-00066.safetensors with huggingface_hub
Verified signature9634964 -
Upload model-00052-of-00066.safetensors with huggingface_hub
Verified signature14a0b41 -
Upload model-00053-of-00066.safetensors with huggingface_hub
Verified signature6cd9c9d -
Upload model-00050-of-00066.safetensors with huggingface_hub
Verified signature33d3e72 -
Upload model-00051-of-00066.safetensors with huggingface_hub
Verified signature944f8bf -
Upload model-00049-of-00066.safetensors with huggingface_hub
Verified signature378f6db -
Upload model-00048-of-00066.safetensors with huggingface_hub
Verified signature5099fd3 -
Upload model-00047-of-00066.safetensors with huggingface_hub
Verified signatureb213324 -
Upload model-00046-of-00066.safetensors with huggingface_hub
Verified signaturece489ef -
Upload model-00044-of-00066.safetensors with huggingface_hub
Verified signature68d836a -
Upload model-00045-of-00066.safetensors with huggingface_hub
Verified signature06860a8 -
Upload model-00043-of-00066.safetensors with huggingface_hub
Verified signaturee109aeb -
Upload model-00042-of-00066.safetensors with huggingface_hub
Verified signature45a5f8f -
Upload model-00040-of-00066.safetensors with huggingface_hub
Verified signatureaceafd7 -
Upload model-00041-of-00066.safetensors with huggingface_hub
Verified signature8a71a27 -
Upload model-00038-of-00066.safetensors with huggingface_hub
Verified signature6ab531c -
Upload model-00039-of-00066.safetensors with huggingface_hub
Verified signature8628702 -
Upload model-00036-of-00066.safetensors with huggingface_hub
Verified signaturebbf0c18 -
Upload model-00037-of-00066.safetensors with huggingface_hub
Verified signatureda9587a -
Upload model-00035-of-00066.safetensors with huggingface_hub
Verified signature351bb66 -
Upload model-00034-of-00066.safetensors with huggingface_hub
Verified signature96f4bb5 -
Upload model-00032-of-00066.safetensors with huggingface_hub
Verified signature43208dd -
Upload model-00033-of-00066.safetensors with huggingface_hub
Verified signatureb261ff4 -
Upload model-00030-of-00066.safetensors with huggingface_hub
Verified signature8266de6 -
Upload model-00031-of-00066.safetensors with huggingface_hub
Verified signaturec129635 -
Upload model-00028-of-00066.safetensors with huggingface_hub
Verified signature389e80f -
Upload model-00029-of-00066.safetensors with huggingface_hub
Verified signatureaee4024 -
Upload model-00026-of-00066.safetensors with huggingface_hub
Verified signature567193b -
Upload model-00027-of-00066.safetensors with huggingface_hub
Verified signature5028b92 -
Upload model-00025-of-00066.safetensors with huggingface_hub
Verified signature0db7f94 -
Upload model-00024-of-00066.safetensors with huggingface_hub
Verified signatureb703f86 -
Upload model-00023-of-00066.safetensors with huggingface_hub
Verified signaturef92a33e -
Upload model-00022-of-00066.safetensors with huggingface_hub
Verified signature267a2e0