Image-Text-to-Text
Transformers
TensorBoard
Safetensors
vision-encoder-decoder
Generated from Trainer
Instructions to use Sagarjha456/line_items with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sagarjha456/line_items with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Sagarjha456/line_items")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Sagarjha456/line_items") model = AutoModelForMultimodalLM.from_pretrained("Sagarjha456/line_items", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Sagarjha456/line_items with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sagarjha456/line_items" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sagarjha456/line_items", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Sagarjha456/line_items
- SGLang
How to use Sagarjha456/line_items 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 "Sagarjha456/line_items" \ --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": "Sagarjha456/line_items", "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 "Sagarjha456/line_items" \ --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": "Sagarjha456/line_items", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Sagarjha456/line_items with Docker Model Runner:
docker model run hf.co/Sagarjha456/line_items
|
Download README.md from Sagarjha456/line_items: direct link, hf CLI and curl.
- Browser
- Download file 1.9 kB
-
https://huggingface.co/Sagarjha456/line_items/resolve/main/README.md
- Command line
-
hf download hf://Sagarjha456/line_items/README.md
-
curl -L -o README.md https://huggingface.co/Sagarjha456/line_items/resolve/main/README.md
1.9 kB
| library_name: transformers | |
| license: mit | |
| base_model: naver-clova-ix/donut-base | |
| tags: | |
| - generated_from_trainer | |
| model-index: | |
| - name: line_items | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # line_items | |
| This model is a fine-tuned version of [naver-clova-ix/donut-base](https://huggingface.co/naver-clova-ix/donut-base) on an unknown dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.4747 | |
| ## Model description | |
| More information needed | |
| ## Intended uses & limitations | |
| More information needed | |
| ## Training and evaluation data | |
| More information needed | |
| ## Training procedure | |
| ### Training hyperparameters | |
| The following hyperparameters were used during training: | |
| - learning_rate: 2e-05 | |
| - train_batch_size: 1 | |
| - eval_batch_size: 1 | |
| - seed: 42 | |
| - gradient_accumulation_steps: 4 | |
| - total_train_batch_size: 4 | |
| - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments | |
| - lr_scheduler_type: linear | |
| - lr_scheduler_warmup_steps: 100 | |
| - num_epochs: 15 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | | |
| |:-------------:|:------:|:----:|:---------------:| | |
| | 12.9586 | 1.0754 | 200 | 2.1653 | | |
| | 4.3160 | 2.1507 | 400 | 1.0573 | | |
| | 2.1071 | 3.2261 | 600 | 0.6039 | | |
| | 0.9479 | 4.3015 | 800 | 0.4992 | | |
| | 0.6713 | 5.3769 | 1000 | 0.4486 | | |
| | 0.6128 | 6.4522 | 1200 | 0.4649 | | |
| | 0.5284 | 7.5276 | 1400 | 0.4505 | | |
| | 0.3932 | 8.6030 | 1600 | 0.4747 | | |
| ### Framework versions | |
| - Transformers 5.10.2 | |
| - Pytorch 2.11.0+cu128 | |
| - Datasets 4.0.0 | |
| - Tokenizers 0.22.2 | |