How to use from
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 "KSTRLAI/Colossus-2.2-Code" \
    --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": "KSTRLAI/Colossus-2.2-Code",
		"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 "KSTRLAI/Colossus-2.2-Code" \
        --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": "KSTRLAI/Colossus-2.2-Code",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Colossus 2.2 Code

A concise, direct coding assistant. It is especially strong at Roblox Luau (scripts, ModuleScripts, GUIs, DataStores, networking, Fusion and React-Lua) and at building web UI with HTML, CSS, JavaScript, React and Tailwind, and it writes code in many other languages too. It thinks step by step in a <think> block before hard problems and answers simple messages right away. Built on Qwen3-4B-Instruct-2507.

Files

  • Root: merged 16-bit safetensors model (use with transformers / vLLM)
  • Colossus-2.2-Code-Q4_K_M.gguf (2.5 GB, fast) and Colossus-2.2-Code-Q8_0.gguf (4.3 GB, higher quality): llama.cpp, LM Studio, Ollama. Both fit easily on an 8 GB GPU.

Run

llama-server -m Colossus-2.2-Code-Q4_K_M.gguf -ngl 99 -c 16384 --jinja

Temperature 0.6 and top_p 0.95 work well; for code, a lower temperature such as 0.3 gives more consistent results. Use a context of 16k or more for long files.

Ollama: create a Modelfile with FROM ./Colossus-2.2-Code-Q4_K_M.gguf and PARAMETER num_ctx 16384, then ollama create colossus-code -f Modelfile.

Transformers:

from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("KSTRLAI/Colossus-2.2-Code"); model = AutoModelForCausalLM.from_pretrained("KSTRLAI/Colossus-2.2-Code", torch_dtype="auto", device_map="auto")
Downloads last month
13
Safetensors
Model size
4B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for KSTRLAI/Colossus-2.2-Code

Quantized
(406)
this model