Image-Text-to-Text
Transformers
Safetensors
English
Chinese
sensenova_loop
text-generation
nvfp4
modelopt
quantized
multimodal
looped-transformer
mhc
mtp
custom_code
conversational
8-bit precision
Instructions to use gitcommit90/SenseNova-Loop-9B-Preview-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gitcommit90/SenseNova-Loop-9B-Preview-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="gitcommit90/SenseNova-Loop-9B-Preview-NVFP4", trust_remote_code=True) 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 AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("gitcommit90/SenseNova-Loop-9B-Preview-NVFP4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gitcommit90/SenseNova-Loop-9B-Preview-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gitcommit90/SenseNova-Loop-9B-Preview-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gitcommit90/SenseNova-Loop-9B-Preview-NVFP4", "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/gitcommit90/SenseNova-Loop-9B-Preview-NVFP4
- SGLang
How to use gitcommit90/SenseNova-Loop-9B-Preview-NVFP4 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 "gitcommit90/SenseNova-Loop-9B-Preview-NVFP4" \ --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": "gitcommit90/SenseNova-Loop-9B-Preview-NVFP4", "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 "gitcommit90/SenseNova-Loop-9B-Preview-NVFP4" \ --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": "gitcommit90/SenseNova-Loop-9B-Preview-NVFP4", "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 gitcommit90/SenseNova-Loop-9B-Preview-NVFP4 with Docker Model Runner:
docker model run hf.co/gitcommit90/SenseNova-Loop-9B-Preview-NVFP4
NVFP4 (ModelOpt) quantization of sensenova/SenseNova-Loop-9B-Preview @27abea77 with BF16 MTP head
a57aa9f verified Download evaluation/perf_sglang_bf16_mtp.json from gitcommit90/SenseNova-Loop-9B-Preview-NVFP4: direct link, hf CLI and curl.
- Browser
- Download file 4.59 kB
-
https://huggingface.co/gitcommit90/SenseNova-Loop-9B-Preview-NVFP4/resolve/main/evaluation/perf_sglang_bf16_mtp.json
- Command line
-
hf download hf://gitcommit90/SenseNova-Loop-9B-Preview-NVFP4/evaluation/perf_sglang_bf16_mtp.json
-
curl -L -o perf_sglang_bf16_mtp.json https://huggingface.co/gitcommit90/SenseNova-Loop-9B-Preview-NVFP4/resolve/main/evaluation/perf_sglang_bf16_mtp.json
4.59 kB
| { | |
| "label": "", | |
| "model": "sensenova-loop-bf16", | |
| "base_url": "http://127.0.0.1:30080/v1", | |
| "host": "tux", | |
| "time": "2026-10-30T16:33:57-0700", | |
| "config": { | |
| "base_url": "http://127.0.0.1:30080/v1", | |
| "model": "sensenova-loop-bf16", | |
| "concurrency": "1,2,4,8", | |
| "num_requests": 8, | |
| "warmup": 2, | |
| "input_tokens": 1024, | |
| "output_tokens": 256, | |
| "tokenizer": "upstream/SenseNova-Loop-9B-Preview/tokenizer.json", | |
| "allow_prefix_cache": false, | |
| "no_ignore_eos": false, | |
| "timeout": 600, | |
| "label": "", | |
| "out": "eval/runs/perf_sglang_bf16_mtp.json", | |
| "prompt_text_tokens": 1024, | |
| "prompt_build": "tokenizer.json" | |
| }, | |
| "levels": [ | |
| { | |
| "concurrency": 1, | |
| "n_requests": 8, | |
| "n_ok": 8, | |
| "n_errors": 0, | |
| "errors": [], | |
| "wall_s": 272.73132864851505, | |
| "ttft_s": { | |
| "p50": 0.7848195834085345, | |
| "p90": 0.9759742130525411, | |
| "mean": 0.8312031434616074 | |
| }, | |
| "e2e_s": { | |
| "p50": 34.21052242349833, | |
| "p90": 34.438923329673706, | |
| "mean": 34.09125282650348 | |
| }, | |
| "decode_tok_s_per_req": { | |
| "p50": 7.627452517131835, | |
| "p90": 7.763279273008121, | |
| "mean": 7.669396340870895 | |
| }, | |
| "itl_s": { | |
| "p50": 0.1311053762084567, | |
| "p90": 0.13172920723317885, | |
| "mean": 0.13043050938103276 | |
| }, | |
| "output_tokens_mean": 256.0, | |
| "output_tokens_min": 256, | |
| "output_tokens_max": 256, | |
| "prompt_tokens_mean": 1051.0, | |
| "n_short_outputs": 0, | |
| "aggregate_output_tok_s": 7.50922165835733, | |
| "requests_per_s": 0.02933289710295832, | |
| "usage_reported": true | |
| }, | |
| { | |
| "concurrency": 2, | |
| "n_requests": 8, | |
| "n_ok": 8, | |
| "n_errors": 0, | |
| "errors": [], | |
| "wall_s": 138.61350492294878, | |
| "ttft_s": { | |
| "p50": 1.1976498886942863, | |
| "p90": 1.6063555277884007, | |
| "mean": 1.2973694901447743 | |
| }, | |
| "e2e_s": { | |
| "p50": 34.72376540116966, | |
| "p90": 36.45519359242171, | |
| "mean": 34.5663175820373 | |
| }, | |
| "decode_tok_s_per_req": { | |
| "p50": 7.653260406224514, | |
| "p90": 8.09628260642012, | |
| "mean": 7.677757556692128 | |
| }, | |
| "itl_s": { | |
| "p50": 0.13067035353651235, | |
| "p90": 0.13736926173243452, | |
| "mean": 0.13046496708274763 | |
| }, | |
| "output_tokens_mean": 256.0, | |
| "output_tokens_min": 256, | |
| "output_tokens_max": 256, | |
| "prompt_tokens_mean": 1051.0, | |
| "n_short_outputs": 0, | |
| "aggregate_output_tok_s": 14.774895138380808, | |
| "requests_per_s": 0.05771443413430003, | |
| "usage_reported": true | |
| }, | |
| { | |
| "concurrency": 4, | |
| "n_requests": 8, | |
| "n_ok": 8, | |
| "n_errors": 0, | |
| "errors": [], | |
| "wall_s": 76.38755708001554, | |
| "ttft_s": { | |
| "p50": 2.5858272635377944, | |
| "p90": 2.779972269944847, | |
| "mean": 2.2637667186791077 | |
| }, | |
| "e2e_s": { | |
| "p50": 36.801751386839896, | |
| "p90": 39.171385447308424, | |
| "mean": 37.270905990269966 | |
| }, | |
| "decode_tok_s_per_req": { | |
| "p50": 7.2633816269398785, | |
| "p90": 7.592177491148207, | |
| "mean": 7.294118130503968 | |
| }, | |
| "itl_s": { | |
| "p50": 0.1376772181057901, | |
| "p90": 0.1427121850625411, | |
| "mean": 0.13728188767883123 | |
| }, | |
| "output_tokens_mean": 256.0, | |
| "output_tokens_min": 256, | |
| "output_tokens_max": 256, | |
| "prompt_tokens_mean": 1051.0, | |
| "n_short_outputs": 0, | |
| "aggregate_output_tok_s": 26.810649250829314, | |
| "requests_per_s": 0.10472909863605201, | |
| "usage_reported": true | |
| }, | |
| { | |
| "concurrency": 8, | |
| "n_requests": 8, | |
| "n_ok": 8, | |
| "n_errors": 0, | |
| "errors": [], | |
| "wall_s": 44.81087386980653, | |
| "ttft_s": { | |
| "p50": 5.374245874583721, | |
| "p90": 5.41043642014265, | |
| "mean": 5.388463915442117 | |
| }, | |
| "e2e_s": { | |
| "p50": 41.73927395185456, | |
| "p90": 43.86301381308586, | |
| "mean": 41.677275480818935 | |
| }, | |
| "decode_tok_s_per_req": { | |
| "p50": 7.0119672437329355, | |
| "p90": 7.471562651588895, | |
| "mean": 7.0494192349641605 | |
| }, | |
| "itl_s": { | |
| "p50": 0.1426148278529153, | |
| "p90": 0.1509358527029262, | |
| "mean": 0.14230802183349928 | |
| }, | |
| "output_tokens_mean": 256.0, | |
| "output_tokens_min": 256, | |
| "output_tokens_max": 256, | |
| "prompt_tokens_mean": 1051.0, | |
| "n_short_outputs": 0, | |
| "aggregate_output_tok_s": 45.7031926212878, | |
| "requests_per_s": 0.17852809617690546, | |
| "usage_reported": true | |
| } | |
| ] | |
| } |