Instructions to use NbAiLab/roberta_des_ada_128_6e4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NbAiLab/roberta_des_ada_128_6e4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="NbAiLab/roberta_des_ada_128_6e4")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("NbAiLab/roberta_des_ada_128_6e4") model = AutoModelForMaskedLM.from_pretrained("NbAiLab/roberta_des_ada_128_6e4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download run_step5.sh from NbAiLab/roberta_des_ada_128_6e4: direct link, hf CLI and curl.
- Browser
- Download file 846 Bytes
-
https://huggingface.co/NbAiLab/roberta_des_ada_128_6e4/resolve/main/run_step5.sh
- Command line
-
hf download hf://NbAiLab/roberta_des_ada_128_6e4/run_step5.sh
-
curl -L -o run_step5.sh https://huggingface.co/NbAiLab/roberta_des_ada_128_6e4/resolve/main/run_step5.sh
846 Bytes
| ./run_mlm_flax.py \ | |
| --output_dir="./" \ | |
| --model_type="roberta" \ | |
| --model_name_or_path="./" \ | |
| --config_name="./" \ | |
| --tokenizer_name="./" \ | |
| --train_file /mnt/disks/flaxdisk/corpus/train_1_4.json \ | |
| --validation_file /mnt/disks/flaxdisk/corpus/validation.json \ | |
| --cache_dir="/mnt/disks/flaxdisk/cache/" \ | |
| --max_seq_length="128" \ | |
| --weight_decay="0.01" \ | |
| --per_device_train_batch_size="200" \ | |
| --per_device_eval_batch_size="200" \ | |
| --learning_rate="6e-4" \ | |
| --warmup_steps="0" \ | |
| --overwrite_output_dir \ | |
| --num_train_epochs="6" \ | |
| --adam_beta1="0.9" \ | |
| --adam_beta2="0.98" \ | |
| --logging_steps="10000" \ | |
| --save_steps="10000" \ | |
| --eval_steps="10000" \ | |
| --preprocessing_num_workers="64" \ | |
| --auth_token="True" \ | |
| --dtype="bfloat16" \ | |
| --adafactor \ | |
| --push_to_hub | |