Instructions to use calisolo/OFA_huge_NICE_captioning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use calisolo/OFA_huge_NICE_captioning with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import OFAModelForCaption model = OFAModelForCaption.from_pretrained("calisolo/OFA_huge_NICE_captioning", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download candidate1_trainLess/train_args.json from calisolo/OFA_huge_NICE_captioning: direct link, hf CLI and curl.
- Browser
- Download file 957 Bytes
-
https://huggingface.co/calisolo/OFA_huge_NICE_captioning/resolve/main/candidate1_trainLess/train_args.json
- Command line
-
hf download hf://calisolo/OFA_huge_NICE_captioning/candidate1_trainLess/train_args.json
-
curl -L -o train_args.json https://huggingface.co/calisolo/OFA_huge_NICE_captioning/resolve/main/candidate1_trainLess/train_args.json
957 Bytes
| { | |
| "output_dir": "../drive/MyDrive/NICE/model/0430_train_less", | |
| "model_name_or_path": "../drive/MyDrive/NICE/model/cap_best/OFA-huge-caption", | |
| "train_caption_file": "./data/train_caption_catAdded.jsonl", | |
| "train_image_file": "../drive/MyDrive/NICE/train_image.tsv", | |
| "test_caption_file": null, | |
| "test_image_file": null, | |
| "freeze_encoder": false, | |
| "freeze_word_embed": false, | |
| "num_train_epochs": 20, | |
| "max_steps": -1, | |
| "per_device_train_batch_size": 12, | |
| "per_device_eval_batch_size": 256, | |
| "learning_rate": 5e-05, | |
| "max_seq_length": 150, | |
| "logging_steps": 500, | |
| "save_steps": 5000, | |
| "save_total_limit": 1, | |
| "lr_scheduler_type": "cosine", | |
| "warmup_steps": 400, | |
| "warmup_ratio": 0, | |
| "gradient_accumulation_steps": 1, | |
| "optim": "adamw_torch", | |
| "seed": 69, | |
| "fp16": false, | |
| "no_cuda": false, | |
| "dataloader_num_workers": 8, | |
| "save_strategy": "steps", | |
| "weight_decay": 0.01, | |
| "max_grad_norm": 1.0, | |
| "remove_unused_columns": false | |
| } |