Image-Text-to-Text
Transformers
Safetensors
sensenova_loop
text-generation
fp8
quantized
looped-transformer
multimodal
en
zh
conversational
custom_code
Instructions to use letechlead/SenseNova-Loop-9B-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use letechlead/SenseNova-Loop-9B-FP8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="letechlead/SenseNova-Loop-9B-FP8", 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("letechlead/SenseNova-Loop-9B-FP8", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use letechlead/SenseNova-Loop-9B-FP8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "letechlead/SenseNova-Loop-9B-FP8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "letechlead/SenseNova-Loop-9B-FP8", "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/letechlead/SenseNova-Loop-9B-FP8
- SGLang
How to use letechlead/SenseNova-Loop-9B-FP8 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 "letechlead/SenseNova-Loop-9B-FP8" \ --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": "letechlead/SenseNova-Loop-9B-FP8", "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 "letechlead/SenseNova-Loop-9B-FP8" \ --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": "letechlead/SenseNova-Loop-9B-FP8", "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 letechlead/SenseNova-Loop-9B-FP8 with Docker Model Runner:
docker model run hf.co/letechlead/SenseNova-Loop-9B-FP8
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -56,7 +56,7 @@ prompts all correct and coherent, matching the BF16 reference semantics.
|
|
| 56 |
|
| 57 |
Upstream [vLLM PR #64832](https://github.com/vllm-project/vllm/pull/64832) implements the
|
| 58 |
architecture but rejects quantized loads. The fork branch
|
| 59 |
-
[
|
| 60 |
lifts that guard (one-line change plus the checkpoint's ignore list); with this checkpoint it
|
| 61 |
serves FP8 W8A16 on a single 24 GB Ampere card:
|
| 62 |
|
|
|
|
| 56 |
|
| 57 |
Upstream [vLLM PR #64832](https://github.com/vllm-project/vllm/pull/64832) implements the
|
| 58 |
architecture but rejects quantized loads. The fork branch
|
| 59 |
+
[LeTechLead/vllm `sensenova-loop-fp8`](https://github.com/LeTechLead/vllm/tree/sensenova-loop-fp8)
|
| 60 |
lifts that guard (one-line change plus the checkpoint's ignore list); with this checkpoint it
|
| 61 |
serves FP8 W8A16 on a single 24 GB Ampere card:
|
| 62 |
|