Instructions to use anjleeg/roberta-base-finetuned-cola with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anjleeg/roberta-base-finetuned-cola with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="anjleeg/roberta-base-finetuned-cola")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("anjleeg/roberta-base-finetuned-cola") model = AutoModelForSequenceClassification.from_pretrained("anjleeg/roberta-base-finetuned-cola", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download ipu_config.json from anjleeg/roberta-base-finetuned-cola: direct link, hf CLI and curl.
- Browser
- Download file 806 Bytes
-
https://huggingface.co/anjleeg/roberta-base-finetuned-cola/resolve/main/ipu_config.json
- Command line
-
hf download hf://anjleeg/roberta-base-finetuned-cola/ipu_config.json
-
curl -L -o ipu_config.json https://huggingface.co/anjleeg/roberta-base-finetuned-cola/resolve/main/ipu_config.json
806 Bytes
| { | |
| "device_iterations": 1, | |
| "embedding_serialization_factor": 0, | |
| "enable_half_first_order_momentum": true, | |
| "enable_half_partials": true, | |
| "executable_cache_dir": "/tmp/exe_cache/", | |
| "execute_encoder_on_cpu_for_generation": false, | |
| "gradient_accumulation_steps": 16, | |
| "inference_device_iterations": 5, | |
| "inference_replication_factor": 4, | |
| "ipus_per_replica": 4, | |
| "layers_per_ipu": [ | |
| 0, | |
| 4, | |
| 4, | |
| 4 | |
| ], | |
| "matmul_proportion": [ | |
| 0.25 | |
| ], | |
| "optimizer_state_offchip": true, | |
| "optimum_version": "1.1.1", | |
| "output_mode": "final", | |
| "profile_dir": "", | |
| "recompute_checkpoint_every_layer": true, | |
| "replicated_tensor_sharding": true, | |
| "replication_factor": 4, | |
| "seed": 42, | |
| "sharded_execution_for_inference": false, | |
| "transformers_version": "4.18.0", | |
| "use_popdist": false | |
| } | |