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 run-2/checkpoint-768/trainer_state.json from ulorew/dl2_hw2_basic: direct link, hf CLI and curl.
- Browser
- Download file 2 kB
-
https://huggingface.co/ulorew/dl2_hw2_basic/resolve/main/run-2/checkpoint-768/trainer_state.json
- Command line
-
hf download hf://ulorew/dl2_hw2_basic/run-2/checkpoint-768/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/ulorew/dl2_hw2_basic/resolve/main/run-2/checkpoint-768/trainer_state.json
2 kB
| { | |
| "best_global_step": 512, | |
| "best_metric": 0.8190476190476191, | |
| "best_model_checkpoint": null, | |
| "epoch": 3.0, | |
| "eval_steps": 500, | |
| "global_step": 768, | |
| "is_hyper_param_search": true, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 1.0, | |
| "eval_accuracy": 0.956261605116567, | |
| "eval_f1": 0.7687499999999999, | |
| "eval_loss": 0.16805428266525269, | |
| "eval_precision": 0.7335984095427436, | |
| "eval_recall": 0.8074398249452954, | |
| "eval_runtime": 0.3981, | |
| "eval_samples_per_second": 1285.955, | |
| "eval_steps_per_second": 160.744, | |
| "step": 256 | |
| }, | |
| { | |
| "epoch": 1.953125, | |
| "grad_norm": 0.3786657154560089, | |
| "learning_rate": 5.494276727179221e-05, | |
| "loss": 0.24804214477539063, | |
| "step": 500 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "eval_accuracy": 0.9700845884051991, | |
| "eval_f1": 0.8190476190476191, | |
| "eval_loss": 0.12612834572792053, | |
| "eval_precision": 0.7930327868852459, | |
| "eval_recall": 0.8468271334792122, | |
| "eval_runtime": 0.3996, | |
| "eval_samples_per_second": 1281.348, | |
| "eval_steps_per_second": 160.168, | |
| "step": 512 | |
| } | |
| ], | |
| "logging_steps": 500, | |
| "max_steps": 768, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 3, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "EarlyStoppingCallback": { | |
| "args": { | |
| "early_stopping_patience": 1, | |
| "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": true | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 21055176451008.0, | |
| "train_batch_size": 8, | |
| "trial_name": null, | |
| "trial_params": { | |
| "learning_rate": 0.0001568626218019941, | |
| "weight_decay": 6.025215736203862e-06 | |
| } | |
| } | |