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
Download trainer_state.json from Maria-pro/my_vqa_model: direct link, hf CLI and curl.
- Browser
- Download file 748 Bytes
-
https://huggingface.co/Maria-pro/my_vqa_model/resolve/main/trainer_state.json
- Command line
-
hf download hf://Maria-pro/my_vqa_model/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/Maria-pro/my_vqa_model/resolve/main/trainer_state.json
748 Bytes
| { | |
| "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 | |
| } | |