Text Generation
Transformers
Safetensors
qwen3
Merge
taskvector
code
nothink
conversational
text-generation-inference
Instructions to use Montalte/qwen4b-code-nothink-taskvector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Montalte/qwen4b-code-nothink-taskvector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Montalte/qwen4b-code-nothink-taskvector") 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("Montalte/qwen4b-code-nothink-taskvector") model = AutoModelForCausalLM.from_pretrained("Montalte/qwen4b-code-nothink-taskvector", 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 Montalte/qwen4b-code-nothink-taskvector with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Montalte/qwen4b-code-nothink-taskvector" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Montalte/qwen4b-code-nothink-taskvector", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Montalte/qwen4b-code-nothink-taskvector
- SGLang
How to use Montalte/qwen4b-code-nothink-taskvector 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 "Montalte/qwen4b-code-nothink-taskvector" \ --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": "Montalte/qwen4b-code-nothink-taskvector", "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 "Montalte/qwen4b-code-nothink-taskvector" \ --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": "Montalte/qwen4b-code-nothink-taskvector", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Montalte/qwen4b-code-nothink-taskvector with Docker Model Runner:
docker model run hf.co/Montalte/qwen4b-code-nothink-taskvector
Download OFFICIAL_MERGE_RECEIPT.json from Montalte/qwen4b-code-nothink-taskvector: direct link, hf CLI and curl.
- Browser
- Download file 955 Bytes
-
https://huggingface.co/Montalte/qwen4b-code-nothink-taskvector/resolve/main/OFFICIAL_MERGE_RECEIPT.json
- Command line
-
hf download hf://Montalte/qwen4b-code-nothink-taskvector/OFFICIAL_MERGE_RECEIPT.json
-
curl -L -o OFFICIAL_MERGE_RECEIPT.json https://huggingface.co/Montalte/qwen4b-code-nothink-taskvector/resolve/main/OFFICIAL_MERGE_RECEIPT.json
955 Bytes
| {"adapter_tree_sha256":"b729c73f7a34079489af89e6d6b202e8a8c4eae967992618de2433f40ec5a777","base_model_path":"/workspace/code-sft-infra/models/qwen3-4b-base","checkpoint_manifest_sha256":"b98f43c970be2dda5424c1846879fe0250a840a285223f21b0164c5034419a2e","checkpoint_path":"/workspace/code-sft-runs/t30b2507-q4b-tn-v2-lr1e4-e1-20260907/arms/Q4B-NOTHINK/out/Q4B-NOTHINK/906bfd4b4dc7f14ee4320094d8b41684abff8539/qwen3-4b-nothink-lcb-system-v1/7626506109511f8186f050bd58bc0ec2fe32912bfdfba52f2017da409326b179/step-000142-tokens-9455736","label":"v4-q4b-nothink","merged_at_unix":1788870643.6199417,"merged_model_path":"/workspace/code-sft-runs/rstar-eval/official-dev256/v4-q4b-nothink/scratch/step-000142-tokens-9455736-merged-full","merged_tree_sha256":"108754fa5af34fcd163e8d2158a0a3982fe307e9cae8ebe848bd356ce4af779a","receipt_sha256":"7710828397152079d101f6e1cf20999bf277e2693b0c2d903bda0449627e32fb","schema":"CODE_SFT_OFFICIAL_DEV256_MERGE_RECEIPT_V1"} | |