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 quantization/calib_v1.meta.json from gitcommit90/SenseNova-Loop-9B-Preview-NVFP4: direct link, hf CLI and curl.
- Browser
- Download file 1.98 kB
-
https://huggingface.co/gitcommit90/SenseNova-Loop-9B-Preview-NVFP4/resolve/main/quantization/calib_v1.meta.json
- Command line
-
hf download hf://gitcommit90/SenseNova-Loop-9B-Preview-NVFP4/quantization/calib_v1.meta.json
-
curl -L -o calib_v1.meta.json https://huggingface.co/gitcommit90/SenseNova-Loop-9B-Preview-NVFP4/resolve/main/quantization/calib_v1.meta.json
1.98 kB
| { | |
| "version": "calib_v1", | |
| "seed": 20261030, | |
| "n": 256, | |
| "counts": { | |
| "chat": 77, | |
| "code": 51, | |
| "math": 51, | |
| "tools": 38, | |
| "image": 39 | |
| }, | |
| "n_thinking_examples": 26, | |
| "langs_chat": { | |
| "en": 58, | |
| "zh": 10, | |
| "es": 7, | |
| "ca": 2 | |
| }, | |
| "text_tokens": { | |
| "min": 25, | |
| "max": 1551, | |
| "mean": 233.29296875, | |
| "sum": 59723 | |
| }, | |
| "max_text_tokens_filter": 1800, | |
| "sources": { | |
| "chat": { | |
| "repo": "OpenAssistant/oasst2", | |
| "rev": "179dd21fc55192153d94adb0e0ce8f69e222bf75", | |
| "file": "data/train-00000-of-00001-88ba0162028a73fc.parquet", | |
| "split": "train", | |
| "license": "Apache-2.0" | |
| }, | |
| "code": { | |
| "repo": "google-research-datasets/mbpp", | |
| "rev": "4bb6404fdc6cacfda99d4ac4205087b89d32030c", | |
| "file": "full/train-00000-of-00001.parquet", | |
| "split": "full/train", | |
| "license": "CC-BY-4.0" | |
| }, | |
| "math": { | |
| "repo": "openai/gsm8k", | |
| "rev": "740312add88f781978c0658806c59bc2815b9866", | |
| "file": "main/train-00000-of-00001.parquet", | |
| "split": "main/train", | |
| "license": "MIT" | |
| }, | |
| "tools": { | |
| "repo": "glaiveai/glaive-function-calling-v2", | |
| "rev": "e7f4b6456019f5d8bcb991ef0dd67d8ff23221ac", | |
| "file": "glaive-function-calling-v2.json", | |
| "split": "train", | |
| "license": "Apache-2.0" | |
| }, | |
| "image": { | |
| "repo": "lmms-lab/textvqa", | |
| "rev": "9c0699cd19768ac5ab97568f6b3cbac4c0062884", | |
| "file": "data/train-00000-of-00020.parquet", | |
| "split": "train (shard 0 of 20)", | |
| "license": "TextVQA annotations CC-BY-4.0; images OpenImages CC-BY-2.0 (Flickr attribution)" | |
| } | |
| }, | |
| "eval_overlap_13gram": [ | |
| { | |
| "id": "calib_v1_203", | |
| "source": "glaive-fc-v2:108408", | |
| "n_shared_13grams": 1, | |
| "example": "type function function name send_email description send an email parameters type object properties" | |
| } | |
| ], | |
| "sha256": "9a4d2112ef71820a5a6d8b015b4996092d4c08c3a2aa1abf7303aa5cd3b7ff83" | |
| } |