ternary-models: VLMs, Multimodal & Audio
Collection
Ternary-quantized models for architectures GGUF can't handle. tritplane3 scheme. β’ 16 items β’ Updated β’ 6
Run AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs and TRL to fine-tune https://huggingface.co/AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to evaluate https://huggingface.co/AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to create a 4-bit version of https://huggingface.co/AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary", device_map="auto")How to use AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary
How to use AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary with Docker Model Runner:
docker model run hf.co/AsadIsmail/SmolVLM2-500M-Video-Instruct-ternary
Ternary-quantized version of HuggingFaceTB/SmolVLM2-500M-Video-Instruct β a compact video-understanding VLM.
| Property | Value |
|---|---|
| Base Model | HuggingFaceTB/SmolVLM2-500M-Video-Instruct |
| Parameters | 500M |
| Quantization | tritplane3 (225 linear layers) |
| Full-model effective bits | 11.50 |
| Compression ratio | 1.39Γ |
| Avg reconstruction error | 0.1413 |
| Vision Encoder | FP16 (preserved) |
Part of ternary-models.
Base model
HuggingFaceTB/SmolLM2-360M