Visual Question Answering
Transformers
PyTorch
Safetensors
English
paligemma
image-text-to-text
coffe
caption
text-generation-inference
Instructions to use Fer14/paligemma_coffee_machine_caption with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Fer14/paligemma_coffee_machine_caption with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "visual-question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("visual-question-answering", model="Fer14/paligemma_coffee_machine_caption")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Fer14/paligemma_coffee_machine_caption") model = AutoModelForMultimodalLM.from_pretrained("Fer14/paligemma_coffee_machine_caption", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from Fer14/paligemma_coffee_machine_caption: direct link, hf CLI and curl.
- Browser
- Download file 726 Bytes
-
https://huggingface.co/Fer14/paligemma_coffee_machine_caption/resolve/main/adapter_config.json
- Command line
-
hf download hf://Fer14/paligemma_coffee_machine_caption/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/Fer14/paligemma_coffee_machine_caption/resolve/main/adapter_config.json
726 Bytes
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "google/paligemma-3b-pt-224", | |
| "bias": "none", | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": true, | |
| "layer_replication": null, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 8, | |
| "lora_dropout": 0.0, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 8, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "k_proj", | |
| "o_proj", | |
| "gate_proj", | |
| "down_proj", | |
| "q_proj", | |
| "up_proj", | |
| "v_proj" | |
| ], | |
| "task_type": "CAUSAL_LM", | |
| "use_dora": false, | |
| "use_rslora": false | |
| } |