Instructions to use Adesh696/git-base-flickr8k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Adesh696/git-base-flickr8k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Adesh696/git-base-flickr8k")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Adesh696/git-base-flickr8k") model = AutoModelForMultimodalLM.from_pretrained("Adesh696/git-base-flickr8k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Adesh696/git-base-flickr8k with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Adesh696/git-base-flickr8k" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Adesh696/git-base-flickr8k", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Adesh696/git-base-flickr8k
- SGLang
How to use Adesh696/git-base-flickr8k 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 "Adesh696/git-base-flickr8k" \ --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": "Adesh696/git-base-flickr8k", "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 "Adesh696/git-base-flickr8k" \ --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": "Adesh696/git-base-flickr8k", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Adesh696/git-base-flickr8k with Docker Model Runner:
docker model run hf.co/Adesh696/git-base-flickr8k
Training in progress, epoch 1
Browse filesFiles changed (6)
- config.jsonAdded+34
- model.safetensorsAdded+3
- runs/Jan14_16-07-08_c049ce0777e9/events.out.tfevents.1705248429.c049ce0777e9.26.0Added+3
- runs/Jan14_16-09-01_c049ce0777e9/events.out.tfevents.1705248542.c049ce0777e9.26.1Added+3
- runs/Jan14_16-09-25_c049ce0777e9/events.out.tfevents.1705248565.c049ce0777e9.26.2Added+3
- training_args.binAdded+3
12345678910111213141516171819202122232425262728293031323334{ "_name_or_path": "microsoft/git-base", "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.35.2", "use_cache": true, "vision_config": { "dropout": 0.0, "initializer_factor": 1.0, "model_type": "git_vision_model", "projection_dim": 512 }, "vocab_size": 30522}123version https://git-lfs.github.com/spec/v1oid sha256:2c0f78d2cede0d2394fa23d47602db9d467891fd051a34599da20092cf5c67a8size 706516040123version https://git-lfs.github.com/spec/v1oid sha256:22189bde4cb708bd0e4037784bb5f7153932ef0f4e91761b4cb299061a620da1size 4446123version https://git-lfs.github.com/spec/v1oid sha256:e3326b88abb0e158d7cba0199503c18e38ce3d3ce40497648e4c5c3a14d1c3dfsize 4445123version https://git-lfs.github.com/spec/v1oid sha256:863fd04e99a80f244b5300b3ef30000e2345375b1132ec87fd4e2efe4f1759adsize 11436123version https://git-lfs.github.com/spec/v1oid sha256:5064fe8f6ec27405aeb9dfe6cc2b88427b1fce13ca81da02ab4481ecd3834a8esize 4155config.jsonAdded+34
model.safetensorsAdded+3
runs/Jan14_16-07-08_c049ce0777e9/events.out.tfevents.1705248429.c049ce0777e9.26.0Added+3
runs/Jan14_16-09-01_c049ce0777e9/events.out.tfevents.1705248542.c049ce0777e9.26.1Added+3
runs/Jan14_16-09-25_c049ce0777e9/events.out.tfevents.1705248565.c049ce0777e9.26.2Added+3
training_args.binAdded+3