Instructions to use flintglass/PrismCode-35B-A3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flintglass/PrismCode-35B-A3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flintglass/PrismCode-35B-A3B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("flintglass/PrismCode-35B-A3B") model = AutoModelForMultimodalLM.from_pretrained("flintglass/PrismCode-35B-A3B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use flintglass/PrismCode-35B-A3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flintglass/PrismCode-35B-A3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flintglass/PrismCode-35B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/flintglass/PrismCode-35B-A3B
- SGLang
How to use flintglass/PrismCode-35B-A3B 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 "flintglass/PrismCode-35B-A3B" \ --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": "flintglass/PrismCode-35B-A3B", "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 "flintglass/PrismCode-35B-A3B" \ --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": "flintglass/PrismCode-35B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use flintglass/PrismCode-35B-A3B with Docker Model Runner:
docker model run hf.co/flintglass/PrismCode-35B-A3B
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM
processor = AutoProcessor.from_pretrained("flintglass/PrismCode-35B-A3B")
model = AutoModelForMultimodalLM.from_pretrained("flintglass/PrismCode-35B-A3B", device_map="auto")
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
{"type": "text", "text": "What animal is on the candy?"}
]
},
]
inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))Flintglass PrismCode-35B-A3B
Ultra-Fast 3B-Active MoE Execution-Verified Python Coding Specialist on Apache-2.0 Qwen/Qwen3.6-35B-A3B (35B Total / 3B Active Parameters) β achieving #1 Overall EvalPlus Strict Score in the Flintglass Stack: 89.63% HumanEval+ (+0.61 pts), 78.57% MBPP+ (+0.53 pts, -15% tokens), 84.10% EvalPlus Strict Macro Average (+0.57 pts), and 81.92% Micro Average (444/542 strict EvalPlus tasks solved!) at 3B-class inference speed!
Part of the Flintglass Prism Open-Source Agent & RAG Stack Β· GGUF Quantizations:
flintglass/PrismCode-35B-A3B-GGUF(Q4_K_M,Q6_K)
Verified Zero-Leakage EvalPlus Strict Results (542 Tasks)
Evaluated identically with greedy decoding (temperature=0.0, enable_thinking=False) against the full EvalPlus strict test suites (80Γ more edge-case unit tests than standard HumanEval/MBPP):
| Benchmark | Tasks | Qwen/Qwen3.6-35B-A3B (Base) |
flintglass/PrismCode-35B-A3B |
Delta | Avg Tokens (Base -> PrismCode) |
|---|---|---|---|---|---|
| HumanEval+ (EvalPlus Strict) | 164 | 89.02% (146/164) | 89.63% (147/164) | +0.61 pts | 271.2 -> 263.3 (-3%) |
| MBPP+ (EvalPlus Strict) | 378 | 78.04% (295/378) | 78.57% (297/378) | +0.53 pts | 178.9 -> 152.4 (-15%) |
| EvalPlus Macro Average | 542 | 83.53% | 84.10% | +0.57 pts | β |
| EvalPlus Micro Average | 542 | 81.37% (441/542) | 81.92% (444/542) | +0.55 pts | β |
Quickstart (transformers)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "flintglass/PrismCode-35B-A3B"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
messages = [{"role": "user", "content": "Write a Python function `merge_intervals(intervals)` that merges overlapping [start, end] intervals."}]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tok.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
Training & Provenance
- Base Model:
Qwen/Qwen3.6-35B-A3B(Apache-2.0, 35B total / 3B active MoE) - Algorithm: Pure On-Policy PPO-Clipped GRPO (
r=32, 20 steps,K=8rollouts/prompt, isolated subprocess unit-test execution reward with zero token-shortening penalty). - License: Apache-2.0
- Downloads last month
- -
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flintglass/PrismCode-35B-A3B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)