Image-Text-to-Text
Transformers
Safetensors
English
qwen2_vl
conversational
text-generation-inference
Run this model with HF Jobs
Run niladridutt/monetGPT 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/niladridutt/monetGPT. 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/niladridutt/monetGPT 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/niladridutt/monetGPT. 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/niladridutt/monetGPT. 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 niladridutt/monetGPT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use niladridutt/monetGPT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="niladridutt/monetGPT") 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("niladridutt/monetGPT") model = AutoModelForMultimodalLM.from_pretrained("niladridutt/monetGPT", 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 niladridutt/monetGPT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "niladridutt/monetGPT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "niladridutt/monetGPT", "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/niladridutt/monetGPT
- SGLang
How to use niladridutt/monetGPT 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 "niladridutt/monetGPT" \ --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": "niladridutt/monetGPT", "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 "niladridutt/monetGPT" \ --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": "niladridutt/monetGPT", "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" } } ] } ] }' - Docker Model Runner
How to use niladridutt/monetGPT with Docker Model Runner:
docker model run hf.co/niladridutt/monetGPT
Upload folder using huggingface_hub
Browse filesFiles changed (10)
- .DS_StoreAdded
- .gitattributes+7
- pipeline.gifAdded
- teaser.jpgAdded
- test/.DS_StoreAdded
- test/a0565-NKIM_MG_6637.pngAdded
- test/a1329-IMG_3540.pngAdded
- test/a1773-_I2E6267.pngAdded
- test/a2272-NKIM_MG_6476.pngAdded
- test/a2335-IMG_2841.pngAdded
33 unmodified lines34353633 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text33 unmodified lines3435363738394041424333 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -textpipeline.gif filter=lfs diff=lfs merge=lfs -textteaser.jpg filter=lfs diff=lfs merge=lfs -texttest/a0565-NKIM_MG_6637.png filter=lfs diff=lfs merge=lfs -texttest/a1329-IMG_3540.png filter=lfs diff=lfs merge=lfs -texttest/a1773-_I2E6267.png filter=lfs diff=lfs merge=lfs -texttest/a2272-NKIM_MG_6476.png filter=lfs diff=lfs merge=lfs -texttest/a2335-IMG_2841.png filter=lfs diff=lfs merge=lfs -text
.DS_StoreAdded
.gitattributes+7
pipeline.gifAdded

Large File Pointer Details
- SHA256: 9f3a9fc9c6897cc8ae92374bec69a00dcc358b9a491f8cc776bbd5edc07bfc00
- Pointer size: 132 Bytes
- Size of remote file: 6.5 MB
teaser.jpgAdded

Large File Pointer Details
- SHA256: a526563b6d08fe9c5fdd838561778afb829082be51164d2d08b6f01dd699ad8b
- Pointer size: 132 Bytes
- Size of remote file: 1.79 MB
test/.DS_StoreAdded
test/a0565-NKIM_MG_6637.pngAdded

Large File Pointer Details
- SHA256: e87898b04d789a4ae8432532ccefb494204d060c329a850cf9939fdf3e09b8f4
- Pointer size: 132 Bytes
- Size of remote file: 2.96 MB
test/a1329-IMG_3540.pngAdded

Large File Pointer Details
- SHA256: 2490a79f8f2e2660f5ac4f1b6c10ae5eacdb8e1eaffa0a850a51c9fc88afb26d
- Pointer size: 132 Bytes
- Size of remote file: 3.06 MB
test/a1773-_I2E6267.pngAdded

Large File Pointer Details
- SHA256: 7da5625e2e3ffd6b3b1593633c3a7fe36b4e208270cecbde91ca383702adf359
- Pointer size: 132 Bytes
- Size of remote file: 3.74 MB
test/a2272-NKIM_MG_6476.pngAdded

Large File Pointer Details
- SHA256: 6b0a2b582c78bd36e28fb0e9006ac5885a6326f842ab3a73b234ece419d58727
- Pointer size: 132 Bytes
- Size of remote file: 2.92 MB
test/a2335-IMG_2841.pngAdded

Large File Pointer Details
- SHA256: 141c4276925d6161963a6f66fef4c6cc9702545ea894e8f1991026789fe0966a
- Pointer size: 132 Bytes
- Size of remote file: 2.98 MB