Instructions to use Maria-pro/my_vqa_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Maria-pro/my_vqa_model 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="Maria-pro/my_vqa_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForVisualQuestionAnswering processor = AutoProcessor.from_pretrained("Maria-pro/my_vqa_model") model = AutoModelForVisualQuestionAnswering.from_pretrained("Maria-pro/my_vqa_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 748 Bytes
e9735aa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | {
"best_global_step": null,
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 0,
"eval_steps": 500,
"global_step": 0,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [],
"logging_steps": 50,
"max_steps": 500,
"num_input_tokens_seen": 0,
"num_train_epochs": 20,
"save_steps": 200,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": false,
"should_training_stop": true
},
"attributes": {}
}
},
"total_flos": 0,
"train_batch_size": 4,
"trial_name": null,
"trial_params": null
}
|