Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
physics
science
reasoning
math
qwen3.5
conversational
Instructions to use FirstPrinciplesLabs/quark with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FirstPrinciplesLabs/quark with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="FirstPrinciplesLabs/quark") 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("FirstPrinciplesLabs/quark") model = AutoModelForMultimodalLM.from_pretrained("FirstPrinciplesLabs/quark", 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 FirstPrinciplesLabs/quark with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FirstPrinciplesLabs/quark" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FirstPrinciplesLabs/quark", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/FirstPrinciplesLabs/quark
- SGLang
How to use FirstPrinciplesLabs/quark 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 "FirstPrinciplesLabs/quark" \ --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": "FirstPrinciplesLabs/quark", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "FirstPrinciplesLabs/quark" \ --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": "FirstPrinciplesLabs/quark", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use FirstPrinciplesLabs/quark with Docker Model Runner:
docker model run hf.co/FirstPrinciplesLabs/quark
Commit History
4 days ago
-
Upload quark_banner_final.png
Verified signatured55f4e9 -
Link to quark_quantized_weight_only-Q8_0
Matthew Tchouikine4620245
5 days ago
-
Link to the renamed quark-int8 repo
Matthew Tchouikineff47980 -
Update README.md
Verified signature935908a -
README: call the 8-bit GGUF Q8_0 (model weights quantized to 8 bits) instead of int8
Verified signature10fa12c -
README: mention the int8 version in the intro and Usage
Verified signaturebd96215 -
README: new Quark banner
Verified signature9e7a8f4 -
clean up model card
Matthew Tchouikineb373146 -
README: Quark banner
Verified signatureee399ef -
Add GGUF results and speed (llama.cpp, vLLM)
Matthew Tchouikine4d98655 -
README: example (AIME 2025 II #15, Quark vs Qwen3.5-9B), Ollama in Usage, Theo in the intro
Verified signature03c78ed
9 days ago
-
README: fix comparison table separator
Verified signaturec4f8f78 -
README: remove cut-off columns
Verified signature8907ae7 -
Update README.md
Verified signature2720954
10 days ago
-
Update README.md
Verified signature19c9738
15 days ago
-
Update README.md
Verified signatureeditse28c0d4 -
Update README.md
Verified signature14b1ea6 -
Model card: Theo-Quark series and Theo collaborator
Verified signature787bc74 -
Model card: add cut-off rates at 131K
Verified signature31552ff -
Model card: drop the Qwen3-8B source note
Verified signature148075c -
Restore your 20:48 edits; add EvalScope note
Verified signature96c32f4 -
Model card: note benchmarks were run with EvalScope
Verified signature3538f83 -
Update README.md
Verified signatureda9b8d3 -
Model card: general description of the training data
Verified signaturea524ab1 -
Update README.md
Verified signature97da9ad -
Theo-Quark: SFT of Qwen3.5-9B (epoch 6) and model card
Verified signature6b4406a -
initial commit
Verified signature90bb8c4