Instructions to use duyntnet/Qwen2-7B-Instruct-imatrix-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use duyntnet/Qwen2-7B-Instruct-imatrix-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="duyntnet/Qwen2-7B-Instruct-imatrix-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("duyntnet/Qwen2-7B-Instruct-imatrix-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use duyntnet/Qwen2-7B-Instruct-imatrix-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "duyntnet/Qwen2-7B-Instruct-imatrix-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "duyntnet/Qwen2-7B-Instruct-imatrix-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/duyntnet/Qwen2-7B-Instruct-imatrix-GGUF
- SGLang
How to use duyntnet/Qwen2-7B-Instruct-imatrix-GGUF 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 "duyntnet/Qwen2-7B-Instruct-imatrix-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "duyntnet/Qwen2-7B-Instruct-imatrix-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "duyntnet/Qwen2-7B-Instruct-imatrix-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "duyntnet/Qwen2-7B-Instruct-imatrix-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use duyntnet/Qwen2-7B-Instruct-imatrix-GGUF with Docker Model Runner:
docker model run hf.co/duyntnet/Qwen2-7B-Instruct-imatrix-GGUF
Ctrl+K
- 3.28 kB
- 2.04 GB LFS
- 1.9 GB xet
- 2.78 GB xet
- 2.6 GB xet
- 2.47 GB xet
- 2.27 GB xet
- 3.57 GB xet
- 3.5 GB xet
- 3.35 GB xet
- 3.11 GB xet
- 4.44 GB xet
- 4.22 GB xet
- 3.02 GB xet
- 2.83 GB xet
- 4.09 GB xet
- 3.81 GB xet
- 3.49 GB xet
- 4.44 GB xet
- 4.87 GB xet
- 4.68 GB xet
- 4.46 GB xet
- 5.33 GB xet
- 5.76 GB xet
- 5.44 GB xet
- 5.32 GB xet
- 6.25 GB xet
- 8.1 GB xet
- 3.82 kB