Instructions to use NbAiLab/nb-roberta-base-scandi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NbAiLab/nb-roberta-base-scandi with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="NbAiLab/nb-roberta-base-scandi")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("NbAiLab/nb-roberta-base-scandi") model = AutoModelForMaskedLM.from_pretrained("NbAiLab/nb-roberta-base-scandi", device_map="auto") - Notebooks
- Google Colab
- Kaggle
test
Browse files
run.sh
CHANGED
|
@@ -18,5 +18,6 @@ python run_mlm_flax_stream.py \
|
|
| 18 |
--eval_steps="50" \
|
| 19 |
--output_dir="./" \
|
| 20 |
--dtype="bfloat16" \
|
| 21 |
-
--
|
|
|
|
| 22 |
--push_to_hub
|
|
|
|
| 18 |
--eval_steps="50" \
|
| 19 |
--output_dir="./" \
|
| 20 |
--dtype="bfloat16" \
|
| 21 |
+
--push_to_hub_organization="NbAiLab" \
|
| 22 |
+
--push_to_hub_model_id="nb-roberta-base-scandi" \
|
| 23 |
--push_to_hub
|