Instructions to use alexbeta80/donut-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alexbeta80/donut-test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="alexbeta80/donut-test")# Load model directly from transformers import AutoTokenizer, AutoModelForImageTextToText tokenizer = AutoTokenizer.from_pretrained("alexbeta80/donut-test") model = AutoModelForImageTextToText.from_pretrained("alexbeta80/donut-test") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use alexbeta80/donut-test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alexbeta80/donut-test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alexbeta80/donut-test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/alexbeta80/donut-test
- SGLang
How to use alexbeta80/donut-test 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 "alexbeta80/donut-test" \ --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": "alexbeta80/donut-test", "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 "alexbeta80/donut-test" \ --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": "alexbeta80/donut-test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use alexbeta80/donut-test with Docker Model Runner:
docker model run hf.co/alexbeta80/donut-test
End of training
Browse files- README.md +0 -4
- config.json +2 -2
- preprocessor_config.json +2 -2
- pytorch_model.bin +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -42,10 +42,6 @@ The following hyperparameters were used during training:
|
|
| 42 |
- lr_scheduler_type: linear
|
| 43 |
- num_epochs: 10
|
| 44 |
|
| 45 |
-
### Training results
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
### Framework versions
|
| 50 |
|
| 51 |
- Transformers 4.34.0
|
|
|
|
| 42 |
- lr_scheduler_type: linear
|
| 43 |
- num_epochs: 10
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
### Framework versions
|
| 46 |
|
| 47 |
- Transformers 4.34.0
|
config.json
CHANGED
|
@@ -124,8 +124,8 @@
|
|
| 124 |
"1": "LABEL_1"
|
| 125 |
},
|
| 126 |
"image_size": [
|
| 127 |
-
|
| 128 |
-
|
| 129 |
],
|
| 130 |
"initializer_range": 0.02,
|
| 131 |
"is_decoder": false,
|
|
|
|
| 124 |
"1": "LABEL_1"
|
| 125 |
},
|
| 126 |
"image_size": [
|
| 127 |
+
1169,
|
| 128 |
+
827
|
| 129 |
],
|
| 130 |
"initializer_range": 0.02,
|
| 131 |
"is_decoder": false,
|
preprocessor_config.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
"resample": 2,
|
| 21 |
"rescale_factor": 0.00392156862745098,
|
| 22 |
"size": [
|
| 23 |
-
|
| 24 |
-
|
| 25 |
]
|
| 26 |
}
|
|
|
|
| 20 |
"resample": 2,
|
| 21 |
"rescale_factor": 0.00392156862745098,
|
| 22 |
"size": [
|
| 23 |
+
827,
|
| 24 |
+
1169
|
| 25 |
]
|
| 26 |
}
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 809285846
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b14fb7d0c0bf60963b5eac869d930984d6758ffa47a1621348697adf305a881
|
| 3 |
size 809285846
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4600
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0769741ab677296ff89df4b83cd19b048c499ebbf792bc1bcc7cd8fcec05bdf1
|
| 3 |
size 4600
|