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 adapter_model.safetensors from ashutosh2211/qwen3-4b-reasonforge: direct link, hf CLI and curl.
- Browser
- Download file 132 MB
-
https://huggingface.co/ashutosh2211/qwen3-4b-reasonforge/resolve/main/adapter_model.safetensors
- Command line
-
hf download hf://ashutosh2211/qwen3-4b-reasonforge/adapter_model.safetensors
-
curl -L -o adapter_model.safetensors https://huggingface.co/ashutosh2211/qwen3-4b-reasonforge/resolve/main/adapter_model.safetensors
132 MB
- Xet hash:
- 860de103bcbd859bcacec1508136c230ffc2502305637d5bccd59150a5dc0d99
- Size of remote file:
- 132 MB
- SHA256:
- 09a8835d61bdcb8f784e7fc4e4744b59127486274fa43a95e42444e228a5c895
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.