Instructions to use ashutosh2211/qwen3-4b-reasonforge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ashutosh2211/qwen3-4b-reasonforge with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/qwen3-4b-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "ashutosh2211/qwen3-4b-reasonforge") - Transformers
How to use ashutosh2211/qwen3-4b-reasonforge with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ashutosh2211/qwen3-4b-reasonforge") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ashutosh2211/qwen3-4b-reasonforge", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ashutosh2211/qwen3-4b-reasonforge with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ashutosh2211/qwen3-4b-reasonforge" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ashutosh2211/qwen3-4b-reasonforge", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ashutosh2211/qwen3-4b-reasonforge
- SGLang
How to use ashutosh2211/qwen3-4b-reasonforge 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 "ashutosh2211/qwen3-4b-reasonforge" \ --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": "ashutosh2211/qwen3-4b-reasonforge", "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 "ashutosh2211/qwen3-4b-reasonforge" \ --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": "ashutosh2211/qwen3-4b-reasonforge", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use ashutosh2211/qwen3-4b-reasonforge with Docker Model Runner:
docker model run hf.co/ashutosh2211/qwen3-4b-reasonforge
Download training_args.bin from ashutosh2211/qwen3-4b-reasonforge: direct link, hf CLI and curl.
- Browser
- Download file 6.16 kB
-
https://huggingface.co/ashutosh2211/qwen3-4b-reasonforge/resolve/main/training_args.bin
- Command line
-
hf download hf://ashutosh2211/qwen3-4b-reasonforge/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/ashutosh2211/qwen3-4b-reasonforge/resolve/main/training_args.bin
6.16 kB
- Xet hash:
- 31d312bcf165360bc2f52f91b90998bc351714013930c2c78b3c7ddc7d83368a
- Size of remote file:
- 6.16 kB
- SHA256:
- 3f6c0a47ac279add2cf1c69a1bde33d709f18e57ffc6ee5db13073ab59ec7e07
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.