Run this model with HF Jobs
Run avatarcontinues/imagedata 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/avatarcontinues/imagedata. 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/avatarcontinues/imagedata 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/avatarcontinues/imagedata. 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/avatarcontinues/imagedata. 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 avatarcontinues/imagedata with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use avatarcontinues/imagedata with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="avatarcontinues/imagedata")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("avatarcontinues/imagedata") model = AutoModelForMultimodalLM.from_pretrained("avatarcontinues/imagedata", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use avatarcontinues/imagedata with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "avatarcontinues/imagedata" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "avatarcontinues/imagedata", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/avatarcontinues/imagedata
- SGLang
How to use avatarcontinues/imagedata 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 "avatarcontinues/imagedata" \ --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": "avatarcontinues/imagedata", "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 "avatarcontinues/imagedata" \ --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": "avatarcontinues/imagedata", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use avatarcontinues/imagedata with Docker Model Runner:
docker model run hf.co/avatarcontinues/imagedata
Commit ·
f2bed04
1
Parent(s): f919b2c
Upload GitForCausalLM
Browse filesFiles changed (3)
- config.json+24-16
- generation_config.json+2-2
- pytorch_model.bin+2-2
1234567891011121314151617181920212223242526{"_name_or_path": "Salesforce/blip-image-captioning-base","architectures": ["BlipForConditionalGeneration"],"image_text_hidden_size": 256,"initializer_factor": 1.0,"initializer_range": 0.02,"logit_scale_init_value": 2.6592,"model_type": "blip","projection_dim": 512,"text_config": {"initializer_factor": 1.0,"model_type": "blip_text_model","num_attention_heads": 12},"torch_dtype": "float32","transformers_version": "4.34.0.dev0","vision_config": {"dropout": 0.0,"initializer_factor": 1.0,"initializer_range": 0.02,"model_type": "blip_vision_model","num_channels": 3}}12345678910111213141516171819202122232425262728293031323334{"_name_or_path": "microsoft/git-base-coco","architectures": ["GitForCausalLM"],"attention_probs_dropout_prob": 0.1,"bos_token_id": 101,"classifier_dropout": null,"eos_token_id": 102,"hidden_act": "gelu","hidden_dropout_prob": 0.1,"hidden_size": 768,"initializer_range": 0.02,"intermediate_size": 3072,"layer_norm_eps": 1e-12,"max_position_embeddings": 1024,"model_type": "git","num_attention_heads": 12,"num_hidden_layers": 6,"num_image_with_embedding": null,"pad_token_id": 0,"position_embedding_type": "absolute","tie_word_embeddings": false,"torch_dtype": "float32","transformers_version": "4.34.0.dev0","use_cache": true,"vision_config": {"dropout": 0.0,"initializer_factor": 1.0,"model_type": "git_vision_model","projection_dim": 512},"vocab_size": 30522}
1234567{"_from_model_config": true,"bos_token_id": 30522,"eos_token_id": 2,"pad_token_id": 0,"transformers_version": "4.34.0.dev0"}1234567{"_from_model_config": true,"bos_token_id": 101,"eos_token_id": 102,"pad_token_id": 0,"transformers_version": "4.34.0.dev0"}
123version https://git-lfs.github.com/spec/v1oid sha256:1d1bca5f0f0731b4acad13fb03d20e9ff9930a4b56dda55f7f717611f046059dsize 989816429123version https://git-lfs.github.com/spec/v1oid sha256:5248453057d697618b5df624a860357fb71095db69b21e7c69ff280e4df6c907size 706579985
config.json+24-16
generation_config.json+2-2
pytorch_model.bin+2-2