Run this model with HF Jobs
Run habibi26/ocr_train on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/habibi26/ocr_train. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/habibi26/ocr_train on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/habibi26/ocr_train. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/habibi26/ocr_train. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use habibi26/ocr_train with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use habibi26/ocr_train with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="habibi26/ocr_train")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("habibi26/ocr_train") model = AutoModelForMultimodalLM.from_pretrained("habibi26/ocr_train", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use habibi26/ocr_train with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "habibi26/ocr_train" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "habibi26/ocr_train", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/habibi26/ocr_train
- SGLang
How to use habibi26/ocr_train 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 "habibi26/ocr_train" \ --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": "habibi26/ocr_train", "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 "habibi26/ocr_train" \ --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": "habibi26/ocr_train", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use habibi26/ocr_train with Docker Model Runner:
docker model run hf.co/habibi26/ocr_train
Training in progress, step 50
Browse filesFiles changed (6)
- adapter_model.safetensors+1-1
- runs/Jul24_04-47-32_gurame007/events.out.tfevents.1721771253.gurame007.18056.0+2-2
- runs/Jul24_09-15-56_gurame007/events.out.tfevents.1721787357.gurame007.49579.0Added+3
- runs/Jul24_09-24-27_gurame007/events.out.tfevents.1721787868.gurame007.52078.0Added+3
- runs/Jul24_09-25-36_gurame007/events.out.tfevents.1721787936.gurame007.52370.0Added+3
- training_args.bin+2-2
1223version https://git-lfs.github.com/spec/v1oid sha256:7902303da3fccd08620c722fee907b27173e9c533f3d51df10c8efc93ed3443doid sha256:5cbbd3e8d51703fd588f1199553d1a7fc4a76d35a04a47070d8de15c5273769dsize 177448012323version https://git-lfs.github.com/spec/v1oid sha256:aecadb359f0cf0e9069a26a260d4141e51ce10117433c62e95fa9926736f6314size 53016oid sha256:32ee26014842ed1e5ed6656c139bd8a5a8c56412e2667d92677f4143abbdf813size 54342123version https://git-lfs.github.com/spec/v1oid sha256:8d995b270dc301405d140eb28e5b1bf056f9edaaf38b167be8e2aa5dc4c46fc8size 20059123version https://git-lfs.github.com/spec/v1oid sha256:fad96afbcaa10a05b788426fec29cbad0cd86c2eeabeb38f0162f8fdbf177139size 5506123version https://git-lfs.github.com/spec/v1oid sha256:ccad2bac018df64e8cfda5239f3054b859608b1b11b539afd5cb189f10862c4esize 730312323version https://git-lfs.github.com/spec/v1oid sha256:528d8cc63c740d5108c98ef41111061e8dcc614984b6d69404ed2830bc69d505size 5112oid sha256:c49b8d6aa2d240cf4f3e581fc3d01b7b1f159976cd493c3209504d2ff76875c0size 5176adapter_model.safetensors+1-1
runs/Jul24_04-47-32_gurame007/events.out.tfevents.1721771253.gurame007.18056.0+2-2
runs/Jul24_09-15-56_gurame007/events.out.tfevents.1721787357.gurame007.49579.0Added+3
runs/Jul24_09-24-27_gurame007/events.out.tfevents.1721787868.gurame007.52078.0Added+3
runs/Jul24_09-25-36_gurame007/events.out.tfevents.1721787936.gurame007.52370.0Added+3
training_args.bin+2-2