Image-Text-to-Text
Transformers
Safetensors
deepseek_vl_v2
feature-extraction
forkjoin-ai
edge-deployment
aether
custom_code
Instructions to use forkjoin-ai/deepseek-ocr-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use forkjoin-ai/deepseek-ocr-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="forkjoin-ai/deepseek-ocr-2", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("forkjoin-ai/deepseek-ocr-2", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use forkjoin-ai/deepseek-ocr-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "forkjoin-ai/deepseek-ocr-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "forkjoin-ai/deepseek-ocr-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/forkjoin-ai/deepseek-ocr-2
- SGLang
How to use forkjoin-ai/deepseek-ocr-2 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 "forkjoin-ai/deepseek-ocr-2" \ --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": "forkjoin-ai/deepseek-ocr-2", "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 "forkjoin-ai/deepseek-ocr-2" \ --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": "forkjoin-ai/deepseek-ocr-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use forkjoin-ai/deepseek-ocr-2 with Docker Model Runner:
docker model run hf.co/forkjoin-ai/deepseek-ocr-2
Fix model card accuracy (format/filename)
Browse files
README.md
CHANGED
|
@@ -1,53 +1,39 @@
|
|
| 1 |
---
|
| 2 |
-
language:
|
| 3 |
-
- en
|
| 4 |
license: apache-2.0
|
| 5 |
-
library_name:
|
| 6 |
tags:
|
| 7 |
-
-
|
| 8 |
-
- vision
|
| 9 |
-
- multimodal
|
| 10 |
- forkjoin-ai
|
|
|
|
|
|
|
| 11 |
base_model: deepseek-ai/DeepSeek-OCR-2
|
|
|
|
| 12 |
pipeline_tag: image-text-to-text
|
| 13 |
---
|
| 14 |
|
| 15 |
-
# Deepseek Ocr 2
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
## Model Details
|
| 20 |
|
| 21 |
-
|
| 22 |
-
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
## Usage
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
```bash
|
| 30 |
-
|
| 31 |
```
|
| 32 |
|
| 33 |
-
##
|
| 34 |
|
| 35 |
-
|
| 36 |
-
```
|
| 37 |
-
FROM ./deepseek-ocr-2-gguf.gguf
|
| 38 |
-
```
|
| 39 |
-
|
| 40 |
-
```bash
|
| 41 |
-
ollama create deepseek-ocr-2-gguf -f Modelfile
|
| 42 |
-
ollama run deepseek-ocr-2-gguf
|
| 43 |
-
```
|
| 44 |
-
|
| 45 |
-
## About Forkjoin.ai
|
| 46 |
-
|
| 47 |
-
[Forkjoin.ai](https://forkjoin.ai) runs AI models at the edge -- in-browser, on-device, zero cloud cost. These converted models power real-time inference, speech recognition, and natural language capabilities.
|
| 48 |
-
|
| 49 |
-
All conversions are optimized for edge deployment within browser and mobile memory constraints.
|
| 50 |
-
|
| 51 |
-
## License
|
| 52 |
|
| 53 |
-
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
+
library_name: transformers
|
| 4 |
tags:
|
| 5 |
+
- safetensors
|
|
|
|
|
|
|
| 6 |
- forkjoin-ai
|
| 7 |
+
- edge-deployment
|
| 8 |
+
- aether
|
| 9 |
base_model: deepseek-ai/DeepSeek-OCR-2
|
| 10 |
+
base_model_relation: finetune
|
| 11 |
pipeline_tag: image-text-to-text
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# Deepseek Ocr 2 (SafeTensors)
|
| 15 |
|
| 16 |
+
> **SafeTensors mirror** of [deepseek-ai/DeepSeek-OCR-2](https://huggingface.co/deepseek-ai/DeepSeek-OCR-2) for distributed edge inference — powered by the [Aether](https://github.com/forkjoin-ai/aether) runtime on [Edgework.ai](https://edgework.ai).
|
| 17 |
|
| 18 |
## Model Details
|
| 19 |
|
| 20 |
+
| Property | Value |
|
| 21 |
+
|----------|-------|
|
| 22 |
+
| Base model | [deepseek-ai/DeepSeek-OCR-2](https://huggingface.co/deepseek-ai/DeepSeek-OCR-2) |
|
| 23 |
+
| Format | SafeTensors |
|
| 24 |
+
| Weight files | 1 shard(s) `*.safetensors` |
|
| 25 |
+
| License | apache-2.0 |
|
| 26 |
|
| 27 |
## Usage
|
| 28 |
|
| 29 |
+
These are **SafeTensors** weights — load them with the model's native framework (e.g. `transformers` / `diffusers`), not llama.cpp.
|
| 30 |
|
| 31 |
```bash
|
| 32 |
+
huggingface-cli download forkjoin-ai/deepseek-ocr-2 --local-dir ./deepseek-ocr-2
|
| 33 |
```
|
| 34 |
|
| 35 |
+
## About
|
| 36 |
|
| 37 |
+
Published by [AFFECTIVELY](https://huggingface.co/forkjoin-ai) · Managed by [@buley](https://huggingface.co/buley). Mirrored for distributed edge inference via the [Aether](https://github.com/forkjoin-ai/aether) runtime.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
+
- [All models](https://huggingface.co/forkjoin-ai) · [GitHub](https://github.com/forkjoin-ai) · [Edgework.ai](https://edgework.ai)
|