Image-Text-to-Text
Transformers
Safetensors
paddleocr_vl
Generated from Trainer
sft
unsloth
trl
conversational
custom_code
Instructions to use tachiwin/paddleocr_multilingual_checkpoints_c with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tachiwin/paddleocr_multilingual_checkpoints_c with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="tachiwin/paddleocr_multilingual_checkpoints_c", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("tachiwin/paddleocr_multilingual_checkpoints_c", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("tachiwin/paddleocr_multilingual_checkpoints_c", trust_remote_code=True, device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tachiwin/paddleocr_multilingual_checkpoints_c with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tachiwin/paddleocr_multilingual_checkpoints_c" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tachiwin/paddleocr_multilingual_checkpoints_c", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/tachiwin/paddleocr_multilingual_checkpoints_c
- SGLang
How to use tachiwin/paddleocr_multilingual_checkpoints_c 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 "tachiwin/paddleocr_multilingual_checkpoints_c" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tachiwin/paddleocr_multilingual_checkpoints_c", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "tachiwin/paddleocr_multilingual_checkpoints_c" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tachiwin/paddleocr_multilingual_checkpoints_c", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Unsloth Desktop
- Docker Model Runner
How to use tachiwin/paddleocr_multilingual_checkpoints_c with Docker Model Runner:
docker model run hf.co/tachiwin/paddleocr_multilingual_checkpoints_c
Training in progress, step 1500, checkpoint
Browse files
last-checkpoint/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3809184360
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a0de4f6e11d0baa32beb0ffe1aeeccea3d182e6c01289e63ceece62376bc6a3
|
| 3 |
size 3809184360
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2457459557
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96bc0921eb520c391a94db8034e1c3c9dee146c9bdb1f0dca7d3c63f1e950074
|
| 3 |
size 2457459557
|
last-checkpoint/scaler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1383
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32ec6470328d629fb76abf932104897588f64daa31b6c35046668bc6e52ae7fb
|
| 3 |
size 1383
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1465
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:638b923a9902043e8c224f277fba230daea853ca889a781c3d9fa954bbd65480
|
| 3 |
size 1465
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
-
"epoch": 0.
|
| 6 |
"eval_steps": 500,
|
| 7 |
-
"global_step":
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
@@ -883,6 +883,181 @@
|
|
| 883 |
"learning_r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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 886 |
}
|
| 887 |
],
|
| 888 |
"logging_steps": 10,
|
|
@@ -902,7 +1077,7 @@
|
|
| 902 |
"attributes": {}
|
| 903 |
}
|
| 904 |
},
|
| 905 |
-
"total_flos": 2.
|
| 906 |
"train_batch_size": 2,
|
| 907 |
"trial_name": null,
|
| 908 |
"trial_params": null
|
|
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0.4,
|
| 6 |
"eval_steps": 500,
|
| 7 |
+
"global_step": 1500,
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
|
|
| 883 |
"learning_rate": 3.376010781671159e-05,
|
| 884 |
"loss": 0.7281,
|
| 885 |
"step": 1250
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"epoch": 0.336,
|
| 889 |
+
"grad_norm": 11.451189041137695,
|
| 890 |
+
"learning_rate": 3.362533692722372e-05,
|
| 891 |
+
"loss": 0.7865,
|
| 892 |
+
"step": 1260
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"epoch": 0.33866666666666667,
|
| 896 |
+
"grad_norm": 14.050557136535645,
|
| 897 |
+
"learning_rate": 3.349056603773585e-05,
|
| 898 |
+
"loss": 0.7317,
|
| 899 |
+
"step": 1270
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"epoch": 0.3413333333333333,
|
| 903 |
+
"grad_norm": 15.141704559326172,
|
| 904 |
+
"learning_rate": 3.335579514824798e-05,
|
| 905 |
+
"loss": 0.8523,
|
| 906 |
+
"step": 1280
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"epoch": 0.344,
|
| 910 |
+
"grad_norm": 10.00051212310791,
|
| 911 |
+
"learning_rate": 3.322102425876011e-05,
|
| 912 |
+
"loss": 0.6845,
|
| 913 |
+
"step": 1290
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"epoch": 0.3466666666666667,
|
| 917 |
+
"grad_norm": 13.601828575134277,
|
| 918 |
+
"learning_rate": 3.308625336927224e-05,
|
| 919 |
+
"loss": 0.6095,
|
| 920 |
+
"step": 1300
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"epoch": 0.34933333333333333,
|
| 924 |
+
"grad_norm": 10.909045219421387,
|
| 925 |
+
"learning_rate": 3.2951482479784366e-05,
|
| 926 |
+
"loss": 0.6171,
|
| 927 |
+
"step": 1310
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"epoch": 0.352,
|
| 931 |
+
"grad_norm": 11.6277494430542,
|
| 932 |
+
"learning_rate": 3.281671159029649e-05,
|
| 933 |
+
"loss": 0.6462,
|
| 934 |
+
"step": 1320
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"epoch": 0.3546666666666667,
|
| 938 |
+
"grad_norm": 20.13886260986328,
|
| 939 |
+
"learning_rate": 3.2681940700808625e-05,
|
| 940 |
+
"loss": 0.7949,
|
| 941 |
+
"step": 1330
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"epoch": 0.35733333333333334,
|
| 945 |
+
"grad_norm": 17.524749755859375,
|
| 946 |
+
"learning_rate": 3.254716981132075e-05,
|
| 947 |
+
"loss": 0.652,
|
| 948 |
+
"step": 1340
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"epoch": 0.36,
|
| 952 |
+
"grad_norm": 54.58905029296875,
|
| 953 |
+
"learning_rate": 3.2412398921832885e-05,
|
| 954 |
+
"loss": 0.8208,
|
| 955 |
+
"step": 1350
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"epoch": 0.3626666666666667,
|
| 959 |
+
"grad_norm": 18.752511978149414,
|
| 960 |
+
"learning_rate": 3.227762803234501e-05,
|
| 961 |
+
"loss": 0.5932,
|
| 962 |
+
"step": 1360
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"epoch": 0.36533333333333334,
|
| 966 |
+
"grad_norm": 14.622041702270508,
|
| 967 |
+
"learning_rate": 3.2142857142857144e-05,
|
| 968 |
+
"loss": 0.7167,
|
| 969 |
+
"step": 1370
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"epoch": 0.368,
|
| 973 |
+
"grad_norm": 8.478232383728027,
|
| 974 |
+
"learning_rate": 3.200808625336928e-05,
|
| 975 |
+
"loss": 0.7539,
|
| 976 |
+
"step": 1380
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"epoch": 0.37066666666666664,
|
| 980 |
+
"grad_norm": 12.95142650604248,
|
| 981 |
+
"learning_rate": 3.18733153638814e-05,
|
| 982 |
+
"loss": 0.5204,
|
| 983 |
+
"step": 1390
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"epoch": 0.37333333333333335,
|
| 987 |
+
"grad_norm": 17.096162796020508,
|
| 988 |
+
"learning_rate": 3.1738544474393536e-05,
|
| 989 |
+
"loss": 0.6483,
|
| 990 |
+
"step": 1400
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"epoch": 0.376,
|
| 994 |
+
"grad_norm": 10.984807014465332,
|
| 995 |
+
"learning_rate": 3.160377358490566e-05,
|
| 996 |
+
"loss": 0.6095,
|
| 997 |
+
"step": 1410
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"epoch": 0.37866666666666665,
|
| 1001 |
+
"grad_norm": 13.153656005859375,
|
| 1002 |
+
"learning_rate": 3.1469002695417795e-05,
|
| 1003 |
+
"loss": 0.9426,
|
| 1004 |
+
"step": 1420
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"epoch": 0.38133333333333336,
|
| 1008 |
+
"grad_norm": 17.266773223876953,
|
| 1009 |
+
"learning_rate": 3.133423180592992e-05,
|
| 1010 |
+
"loss": 0.6305,
|
| 1011 |
+
"step": 1430
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"epoch": 0.384,
|
| 1015 |
+
"grad_norm": 19.149139404296875,
|
| 1016 |
+
"learning_rate": 3.1199460916442055e-05,
|
| 1017 |
+
"loss": 0.5216,
|
| 1018 |
+
"step": 1440
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"epoch": 0.38666666666666666,
|
| 1022 |
+
"grad_norm": 16.195602416992188,
|
| 1023 |
+
"learning_rate": 3.106469002695418e-05,
|
| 1024 |
+
"loss": 0.6495,
|
| 1025 |
+
"step": 1450
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"epoch": 0.3893333333333333,
|
| 1029 |
+
"grad_norm": 22.2844295501709,
|
| 1030 |
+
"learning_rate": 3.092991913746631e-05,
|
| 1031 |
+
"loss": 0.6727,
|
| 1032 |
+
"step": 1460
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"epoch": 0.392,
|
| 1036 |
+
"grad_norm": 35.478431701660156,
|
| 1037 |
+
"learning_rate": 3.079514824797844e-05,
|
| 1038 |
+
"loss": 0.523,
|
| 1039 |
+
"step": 1470
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"epoch": 0.39466666666666667,
|
| 1043 |
+
"grad_norm": 16.394384384155273,
|
| 1044 |
+
"learning_rate": 3.0660377358490567e-05,
|
| 1045 |
+
"loss": 0.6651,
|
| 1046 |
+
"step": 1480
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"epoch": 0.3973333333333333,
|
| 1050 |
+
"grad_norm": 27.04049301147461,
|
| 1051 |
+
"learning_rate": 3.05256064690027e-05,
|
| 1052 |
+
"loss": 0.6955,
|
| 1053 |
+
"step": 1490
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"epoch": 0.4,
|
| 1057 |
+
"grad_norm": 16.169918060302734,
|
| 1058 |
+
"learning_rate": 3.0390835579514826e-05,
|
| 1059 |
+
"loss": 0.9615,
|
| 1060 |
+
"step": 1500
|
| 1061 |
}
|
| 1062 |
],
|
| 1063 |
"logging_steps": 10,
|
|
|
|
| 1077 |
"attributes": {}
|
| 1078 |
}
|
| 1079 |
},
|
| 1080 |
+
"total_flos": 2.70749074028544e+16,
|
| 1081 |
"train_batch_size": 2,
|
| 1082 |
"trial_name": null,
|
| 1083 |
"trial_params": null
|