Image-Text-to-Text
Transformers
Safetensors
deepseek_v41
text-generation
deepseek
deepseek-v4.1
vision-language
multimodal
fp8
abliterated
uncensored
8-bit precision
Instructions to use Ibackup/DeepSeek-V4.1-Flash-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ibackup/DeepSeek-V4.1-Flash-FP8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Ibackup/DeepSeek-V4.1-Flash-FP8")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Ibackup/DeepSeek-V4.1-Flash-FP8", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ibackup/DeepSeek-V4.1-Flash-FP8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ibackup/DeepSeek-V4.1-Flash-FP8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ibackup/DeepSeek-V4.1-Flash-FP8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ibackup/DeepSeek-V4.1-Flash-FP8
- SGLang
How to use Ibackup/DeepSeek-V4.1-Flash-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 "Ibackup/DeepSeek-V4.1-Flash-FP8" \ --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": "Ibackup/DeepSeek-V4.1-Flash-FP8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Ibackup/DeepSeek-V4.1-Flash-FP8" \ --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": "Ibackup/DeepSeek-V4.1-Flash-FP8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Ibackup/DeepSeek-V4.1-Flash-FP8 with Docker Model Runner:
docker model run hf.co/Ibackup/DeepSeek-V4.1-Flash-FP8
DeepSeek-V4.1-Flash-FP8
DeepSeek-V4.1-Flash-FP8 is an optimized multimodal vision-language model designed for low-latency inference and reduced memory consumption. Quantized to 8-bit floating-point (FP8), this checkpoint offers high throughput for visual understanding and text generation tasks without significant accuracy degradation.
Model Summary
- Developer: DeepSeek-AI
- Model Type: Multimodal (Image-Text-to-Text)
- Precision: FP8 (8-bit Floating Point)
- License: MIT
- Framework: PyTorch / Hugging Face Transformers
Key Features
- High Efficiency: Optimized FP8 weights lower GPU memory footprint and accelerate token generation.
- Multimodal Reasoning: Handles joint visual and textual inputs for document understanding, image captioning, and visual question answering (VQA).
- Flexible Deployment: Compatible with standard
transformersworkflows, vLLM, and TensorRT-LLM engines.
Usage
Using Transformers
import torch
from PIL import Image
from transformers import AutoProcessor, AutoModelForCausalLM
model_id = "your-username/DeepSeek-V4.1-Flash-FP8"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
image = Image.open("example.jpg")
prompt = "<image>\nDescribe the image in detail."
inputs = processor(text=prompt, images=image, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=512)
response = processor.decode(outputs[0], skip_special_tokens=True)
print(response)
- Downloads last month
- 23
Model tree for Ibackup/DeepSeek-V4.1-Flash-FP8
Base model
deepseek-ai/DeepSeek-V4.1-Flash