Run this model with HF Jobs
Run pere/nb-nn-dev on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/pere/nb-nn-dev. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/pere/nb-nn-dev on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use pere/nb-nn-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pere/nb-nn-dev with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" 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("translation", model="pere/nb-nn-dev")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("pere/nb-nn-dev", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Saving weights and logs of epoch 6
Browse filesFiles changed (6)
123version https://git-lfs.github.com/spec/v1oid sha256:a1fa5adbbe6a5cbeedcab79760dd7611a074c1905f4f79d8d386f835eee730a9size 701123version https://git-lfs.github.com/spec/v1oid sha256:ba2f2141e020e11d5a8378398ab356436905f898315d8ffe70b26dc91addc441size 700
123version https://git-lfs.github.com/spec/v1oid sha256:78b1af55372d9d5e839b4800985716d13bd89ce660e256adc83a1d5d0d898750size 40123version https://git-lfs.github.com/spec/v1oid sha256:442420b6e0a7477c4764844291689e084536f4a835cb79e27fea6333ee3931cbsize 2865513123version https://git-lfs.github.com/spec/v1oid sha256:5fe3762aac25de79ac89d75581bfcbc3bfd701c3f616afa4b7341e97c6414497size 1100762015123version https://git-lfs.github.com/spec/v1oid sha256:5167e3435eacd785c79013187f090ebc1538ea5a04d3f649692cd929c470268csize 2329617315
123456789101112131415161718python run_summarization_t5_flax.py \--output_dir "." \--model_name_or_path pere/norwegian-t5-base-NCC-fast \--tokenizer_name pere/norwegian-t5-base-NCC-fast \--dataset_name xsum \--do_train --do_eval --do_predict \--predict_with_generate \--num_train_epochs 6 \--learning_rate 5e-5 \--warmup_steps 0 \--per_device_train_batch_size 32 \--per_device_eval_batch_size 32 \--overwrite_output_dir \--max_source_length 512 \--max_target_length 64 \--revision $1 \--push_to_hub1234567891011121314151617181920python run_summarization_t5_flax.py \--output_dir "." \--model_name_or_path google/mt5-base \--tokenizer_name google/mt5-base \--dataset_name xsum \--do_train --do_eval --do_predict \--predict_with_generate \--num_train_epochs 6 \--learning_rate 5e-5 \--warmup_steps 0 \--per_device_train_batch_size 8 \--per_device_eval_batch_size 8 \--overwrite_output_dir \--max_source_length 512 \--max_target_length 64 \--push_to_hub#--revision None \
123version https://git-lfs.github.com/spec/v1oid sha256:4e2782269c57143454f219ab7563eaed06ab04782ddb7c7d50906b1f1302b4b3size 34784123version https://git-lfs.github.com/spec/v1oid sha256:f7bb91fa2da0e303cda754fe06548c3710f06dcddf575795da18eca4e67976d5size 35053
config.json+2-2
events.out.tfevents.1630919923.t1v-n-1a0a7c50-w-0.3421924.3.v2Added+3
events.out.tfevents.1630921213.t1v-n-1a0a7c50-w-0.3431412.3.v2Added+3
flax_model.msgpack+2-2
run_summarization_t5.sh+7-5
run_summarization_t5_flax.py+2-2