Run this model with HF Jobs
Run ulorew/dl2_hw2_basic 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/ulorew/dl2_hw2_basic. 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/ulorew/dl2_hw2_basic 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 ulorew/dl2_hw2_basic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ulorew/dl2_hw2_basic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ulorew/dl2_hw2_basic")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ulorew/dl2_hw2_basic") model = AutoModelForTokenClassification.from_pretrained("ulorew/dl2_hw2_basic", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download last-checkpoint/trainer_state.json from ulorew/dl2_hw2_basic: direct link, hf CLI and curl.
- Browser
- Download file 3.65 kB
-
https://huggingface.co/ulorew/dl2_hw2_basic/resolve/main/last-checkpoint/trainer_state.json
- Command line
-
hf download hf://ulorew/dl2_hw2_basic/last-checkpoint/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/ulorew/dl2_hw2_basic/resolve/main/last-checkpoint/trainer_state.json
3.65 kB
| { | |
| "best_global_step": 1252, | |
| "best_metric": 0.903638478152517, | |
| "best_model_checkpoint": "data/bert-finetuned-ner/checkpoint-1252", | |
| "epoch": 1.0, | |
| "eval_steps": 500, | |
| "global_step": 1252, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.07987220447284345, | |
| "grad_norm": 0.33020973205566406, | |
| "learning_rate": 1.984185303514377e-05, | |
| "loss": 0.09000459671020508, | |
| "step": 100 | |
| }, | |
| { | |
| "epoch": 0.1597444089456869, | |
| "grad_norm": 2.242691993713379, | |
| "learning_rate": 1.9682108626198083e-05, | |
| "loss": 0.07558784484863282, | |
| "step": 200 | |
| }, | |
| { | |
| "epoch": 0.23961661341853036, | |
| "grad_norm": 1.235368251800537, | |
| "learning_rate": 1.9522364217252397e-05, | |
| "loss": 0.06937418460845947, | |
| "step": 300 | |
| }, | |
| { | |
| "epoch": 0.3194888178913738, | |
| "grad_norm": 2.382298707962036, | |
| "learning_rate": 1.936261980830671e-05, | |
| "loss": 0.05237583637237549, | |
| "step": 400 | |
| }, | |
| { | |
| "epoch": 0.3993610223642173, | |
| "grad_norm": 5.127908706665039, | |
| "learning_rate": 1.9202875399361022e-05, | |
| "loss": 0.0758499813079834, | |
| "step": 500 | |
| }, | |
| { | |
| "epoch": 0.4792332268370607, | |
| "grad_norm": 0.04469168186187744, | |
| "learning_rate": 1.9043130990415336e-05, | |
| "loss": 0.0508516263961792, | |
| "step": 600 | |
| }, | |
| { | |
| "epoch": 0.5591054313099042, | |
| "grad_norm": 0.14859487116336823, | |
| "learning_rate": 1.888338658146965e-05, | |
| "loss": 0.06443696022033692, | |
| "step": 700 | |
| }, | |
| { | |
| "epoch": 0.6389776357827476, | |
| "grad_norm": 9.813681602478027, | |
| "learning_rate": 1.8723642172523965e-05, | |
| "loss": 0.06615594863891601, | |
| "step": 800 | |
| }, | |
| { | |
| "epoch": 0.7188498402555911, | |
| "grad_norm": 2.7694790363311768, | |
| "learning_rate": 1.8563897763578276e-05, | |
| "loss": 0.06128643989562988, | |
| "step": 900 | |
| }, | |
| { | |
| "epoch": 0.7987220447284346, | |
| "grad_norm": 1.7460622787475586, | |
| "learning_rate": 1.840415335463259e-05, | |
| "loss": 0.06247181892395019, | |
| "step": 1000 | |
| }, | |
| { | |
| "epoch": 0.8785942492012779, | |
| "grad_norm": 3.102893590927124, | |
| "learning_rate": 1.82444089456869e-05, | |
| "loss": 0.05852453231811523, | |
| "step": 1100 | |
| }, | |
| { | |
| "epoch": 0.9584664536741214, | |
| "grad_norm": 6.186668872833252, | |
| "learning_rate": 1.8084664536741216e-05, | |
| "loss": 0.056434125900268556, | |
| "step": 1200 | |
| }, | |
| { | |
| "epoch": 1.0, | |
| "eval_accuracy": 0.9803167744292818, | |
| "eval_f1": 0.903638478152517, | |
| "eval_loss": 0.08449825644493103, | |
| "eval_precision": 0.8922244094488189, | |
| "eval_recall": 0.9153483675530124, | |
| "eval_runtime": 2.4538, | |
| "eval_samples_per_second": 1324.497, | |
| "eval_steps_per_second": 165.868, | |
| "step": 1252 | |
| } | |
| ], | |
| "logging_steps": 100, | |
| "max_steps": 12520, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 10, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "EarlyStoppingCallback": { | |
| "args": { | |
| "early_stopping_patience": 3, | |
| "early_stopping_threshold": 0.0 | |
| }, | |
| "attributes": { | |
| "early_stopping_patience_counter": 0 | |
| } | |
| }, | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": false | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 52486385975604.0, | |
| "train_batch_size": 8, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |