Instructions to use Coobiw/ChartMoE_Reproduced with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Coobiw/ChartMoE_Reproduced with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Coobiw/ChartMoE_Reproduced", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Coobiw/ChartMoE_Reproduced", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Coobiw/ChartMoE_Reproduced with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Coobiw/ChartMoE_Reproduced" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Coobiw/ChartMoE_Reproduced", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Coobiw/ChartMoE_Reproduced
- SGLang
How to use Coobiw/ChartMoE_Reproduced 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 "Coobiw/ChartMoE_Reproduced" \ --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": "Coobiw/ChartMoE_Reproduced", "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 "Coobiw/ChartMoE_Reproduced" \ --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": "Coobiw/ChartMoE_Reproduced", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Coobiw/ChartMoE_Reproduced with Docker Model Runner:
docker model run hf.co/Coobiw/ChartMoE_Reproduced
20250306 updates
Browse files- README.md +3 -8
- pytorch_model-00001-of-00002.bin +1 -1
- pytorch_model-00002-of-00002.bin +1 -1
README.md
CHANGED
|
@@ -1,18 +1,13 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
-
pipeline_tag:
|
| 4 |
library_name: transformers
|
|
|
|
| 5 |
---
|
| 6 |
|
| 7 |
-
<div align='center'>
|
| 8 |
-
<h1>This is a reproduction of ChartMoE according to its official github repo, which has better performance on ChartQA(with/without PoT).</h1>
|
| 9 |
-
</div>
|
| 10 |
|
| 11 |
<p align="center">
|
| 12 |
-
<b><font size="6">ChartMoE</font></b>
|
| 13 |
-
<p>
|
| 14 |
-
<p align="center">
|
| 15 |
-
<b><font size="4">ICLR2025 Oral </font></b>
|
| 16 |
<p>
|
| 17 |
|
| 18 |
<div align="center">
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
pipeline_tag: image-text-to-text
|
| 4 |
library_name: transformers
|
| 5 |
+
paper: https://arxiv.org/abs/2409.03277
|
| 6 |
---
|
| 7 |
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
<p align="center">
|
| 10 |
+
<b><font size="6">ChartMoE</font></b>
|
|
|
|
|
|
|
|
|
|
| 11 |
<p>
|
| 12 |
|
| 13 |
<div align="center">
|
pytorch_model-00001-of-00002.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 9983924897
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0ad60ba32eb410cc6226a9a0f674368faf3b0e5ea676fc1d39143e99fce2a53
|
| 3 |
size 9983924897
|
pytorch_model-00002-of-00002.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7643845356
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4c25f6770cb2d443581e285657e28ceb000ad0b5470a0cc9b85a0cb740c0027
|
| 3 |
size 7643845356
|