Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

sensenova
/
SenseNova-Loop-9B

Image-Text-to-Text
Transformers
Safetensors
English
Chinese
sensenova_loop
text-generation
multimodal
looped-transformer
mhc
custom_code
conversational
Eval Results
Model card Files Files and versions
xet
Community
19

Instructions to use sensenova/SenseNova-Loop-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use sensenova/SenseNova-Loop-9B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="sensenova/SenseNova-Loop-9B", 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("sensenova/SenseNova-Loop-9B", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use sensenova/SenseNova-Loop-9B with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "sensenova/SenseNova-Loop-9B"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "sensenova/SenseNova-Loop-9B",
    		"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/sensenova/SenseNova-Loop-9B
  • SGLang

    How to use sensenova/SenseNova-Loop-9B 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 "sensenova/SenseNova-Loop-9B" \
        --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": "sensenova/SenseNova-Loop-9B",
    		"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 "sensenova/SenseNova-Loop-9B" \
            --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": "sensenova/SenseNova-Loop-9B",
    		"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 sensenova/SenseNova-Loop-9B with Docker Model Runner:

    docker model run hf.co/sensenova/SenseNova-Loop-9B
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

I use qvb8 compression, running in 8GB operation and still work well with cline.

#19 opened 5 days ago by
addiesam

Add evaluation results for SenseNova-Loop-9B

#18 opened 8 days ago by
SaylorTwift

tk/s between preview and release

1
#17 opened 9 days ago by
Gui205ElRacoon

SenseNova Loop 9B support landing in PicoLM

#16 opened 10 days ago by
onicubag

Excessive thinking and token gen; long wall clock on basic tasks

4
#14 opened 13 days ago by
QueryQuery

SenseNova-Loop-9B on cortiq (CMF): CUDA, Vulkan, Metal, CPU — a standard file and a Turbo file for long documents

🚀 2
5
#13 opened 13 days ago by
infosave

AWQ INT4?

3
#11 opened 14 days ago by
garrettkolson

app for this model

#10 opened 14 days ago by
akhaliq

We are waiting for Dflash2...

👍 2
2
#9 opened 14 days ago by
naildirect

llama.cpp build

👍 4
3
#8 opened 14 days ago by
ClaudioItaly

MLX builds for Apple Silicon (6-bit, 8-bit, 4-bit, bf16)

2
#7 opened 14 days ago by
Paris99

Apple Silicon

3
#6 opened 14 days ago by
devi9br

Recommendation for 8gb vram?

2
#5 opened 14 days ago by
idkgoogleit

Please provide gguf

🔥 3
4
#4 opened 15 days ago by
hgeist
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs