Instructions to use larabe/testt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use larabe/testt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="larabe/testt")# Load model directly from transformers import AutoTokenizer, AutoModelForImageTextToText tokenizer = AutoTokenizer.from_pretrained("larabe/testt") model = AutoModelForImageTextToText.from_pretrained("larabe/testt") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use larabe/testt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "larabe/testt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "larabe/testt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/larabe/testt
- SGLang
How to use larabe/testt 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 "larabe/testt" \ --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": "larabe/testt", "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 "larabe/testt" \ --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": "larabe/testt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use larabe/testt with Docker Model Runner:
docker model run hf.co/larabe/testt
Training in progress, epoch 1
Browse files- config.json +4 -4
- pytorch_model.bin +2 -2
- runs/Aug23_22-01-20_ip-172-31-42-230.eu-central-1.compute.internal/events.out.tfevents.1692828093.ip-172-31-42-230.eu-central-1.compute.internal.5582.0 +2 -2
- runs/Aug24_11-40-22_ip-172-31-42-230.eu-central-1.compute.internal/events.out.tfevents.1692877237.ip-172-31-42-230.eu-central-1.compute.internal.23634.0 +3 -0
- training_args.bin +1 -1
config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
-
"_commit_hash": "
|
| 3 |
-
"_name_or_path": "naver-clova-ix/donut-base",
|
| 4 |
"architectures": [
|
| 5 |
"VisionEncoderDecoderModel"
|
| 6 |
],
|
|
@@ -51,7 +51,7 @@
|
|
| 51 |
},
|
| 52 |
"length_penalty": 1.0,
|
| 53 |
"max_length": 512,
|
| 54 |
-
"max_position_embeddings":
|
| 55 |
"min_length": 0,
|
| 56 |
"model_type": "mbart",
|
| 57 |
"no_repeat_ngram_size": 0,
|
|
@@ -87,7 +87,7 @@
|
|
| 87 |
"typical_p": 1.0,
|
| 88 |
"use_bfloat16": false,
|
| 89 |
"use_cache": true,
|
| 90 |
-
"vocab_size":
|
| 91 |
},
|
| 92 |
"decoder_start_token_id": 0,
|
| 93 |
"encoder": {
|
|
|
|
| 1 |
{
|
| 2 |
+
"_commit_hash": "8003d433113256b4ce3a0f5bf604b29ff78a7451",
|
| 3 |
+
"_name_or_path": "naver-clova-ix/donut-base-finetuned-cord-v2",
|
| 4 |
"architectures": [
|
| 5 |
"VisionEncoderDecoderModel"
|
| 6 |
],
|
|
|
|
| 51 |
},
|
| 52 |
"length_penalty": 1.0,
|
| 53 |
"max_length": 512,
|
| 54 |
+
"max_position_embeddings": 768,
|
| 55 |
"min_length": 0,
|
| 56 |
"model_type": "mbart",
|
| 57 |
"no_repeat_ngram_size": 0,
|
|
|
|
| 87 |
"typical_p": 1.0,
|
| 88 |
"use_bfloat16": false,
|
| 89 |
"use_cache": true,
|
| 90 |
+
"vocab_size": 57656
|
| 91 |
},
|
| 92 |
"decoder_start_token_id": 0,
|
| 93 |
"encoder": {
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d19c31830ad44985e5a356e4cd0c1b4b7d7cbe71072e7bc39765f3b969575060
|
| 3 |
+
size 806569753
|
runs/Aug23_22-01-20_ip-172-31-42-230.eu-central-1.compute.internal/events.out.tfevents.1692828093.ip-172-31-42-230.eu-central-1.compute.internal.5582.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9ea173466215d127fab9c0a5f5d689570a18c9a6654afdefdfe29909d6db0c8
|
| 3 |
+
size 19686
|
runs/Aug24_11-40-22_ip-172-31-42-230.eu-central-1.compute.internal/events.out.tfevents.1692877237.ip-172-31-42-230.eu-central-1.compute.internal.23634.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbf6c1812034c7614f027540538f57c975a1f3e0a844f63f5bd5e2d1ef4e8e5a
|
| 3 |
+
size 17034
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4155
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:815b2499e698b1eb23b9510df135ed1a581e63ef376d5fafb3aad93f3f573103
|
| 3 |
size 4155
|