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
Training in progress, epoch 1, checkpoint
Browse filesFiles changed (9)
- last-checkpoint/config.jsonAdded+51
- last-checkpoint/model.safetensorsAdded+3
- last-checkpoint/optimizer.ptAdded+3
- last-checkpoint/rng_state.pthAdded+3
- last-checkpoint/scheduler.ptAdded+3
- last-checkpoint/tokenizer.jsonAdded
- last-checkpoint/tokenizer_config.jsonAdded+18
- last-checkpoint/trainer_state.jsonAdded+139
- last-checkpoint/training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "add_cross_attention": false, "architectures": [ "BertForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": null, "classifier_dropout": null, "dtype": "float32", "eos_token_id": null, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 384, "id2label": { "0": "B-LOC", "1": "B-MISC", "2": "B-ORG", "3": "B-PER", "4": "I-LOC", "5": "I-MISC", "6": "I-ORG", "7": "I-PER", "8": "O" }, "initializer_range": 0.02, "intermediate_size": 1536, "is_decoder": false, "label2id": { "B-LOC": 0, "B-MISC": 1, "B-ORG": 2, "B-PER": 3, "I-LOC": 4, "I-MISC": 5, "I-ORG": 6, "I-PER": 7, "O": 8 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "position_embedding_type": "absolute", "tie_word_embeddings": true, "transformers_version": "5.18.0", "type_vocab_size": 2, "use_cache": false, "vocab_size": 30522}123version https://git-lfs.github.com/spec/v1oid sha256:b5aa5c6f59d259fd2ee2a218ef68d90d66793174d28a52fe947da004aa210643size 132885604123version https://git-lfs.github.com/spec/v1oid sha256:c1820be0a670165c70c58c5351d1b1870cb7fa1443d3a1fdf73ea3be3153e902size 265894603123version https://git-lfs.github.com/spec/v1oid sha256:613526be2f9a6650a45c19b0b60eee595dd3162860418cdf6da11497afb38c83size 14645123version https://git-lfs.github.com/spec/v1oid sha256:d71ad08d1577674d13d4f5849963682b980d99d02e4c5744e960ff614e347c6esize 1465123456789101112131415161718{ "backend": "tokenizers", "clean_up_tokenization_spaces": true, "cls_token": "[CLS]", "do_basic_tokenize": true, "do_lower_case": true, "is_local": false, "local_files_only": false, "mask_token": "[MASK]", "model_max_length": 512, "never_split": null, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "BertTokenizer", "unk_token": "[UNK]"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139{ "best_global_step": 1252, "best_metric": 0.8438061041292639, "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": 1.467517375946045, "learning_rate": 1.9472843450479235e-05, "loss": 1.0694212341308593, "step": 100 }, { "epoch": 0.1597444089456869, "grad_norm": 1.205855369567871, "learning_rate": 1.8940362087326944e-05, "loss": 0.552222671508789, "step": 200 }, { "epoch": 0.23961661341853036, "grad_norm": 1.8922792673110962, "learning_rate": 1.8407880724174656e-05, "loss": 0.427046012878418, "step": 300 }, { "epoch": 0.3194888178913738, "grad_norm": 2.1802103519439697, "learning_rate": 1.7875399361022365e-05, "loss": 0.3206692123413086, "step": 400 }, { "epoch": 0.3993610223642173, "grad_norm": 1.6307591199874878, "learning_rate": 1.7342917997870077e-05, "loss": 0.3108229064941406, "step": 500 }, { "epoch": 0.4792332268370607, "grad_norm": 1.8853853940963745, "learning_rate": 1.6810436634717786e-05, "loss": 0.2359910011291504, "step": 600 }, { "epoch": 0.5591054313099042, "grad_norm": 1.0665124654769897, "learning_rate": 1.6277955271565498e-05, "loss": 0.22628555297851563, "step": 700 }, { "epoch": 0.6389776357827476, "grad_norm": 13.80698013305664, "learning_rate": 1.5745473908413206e-05, "loss": 0.2196363639831543, "step": 800 }, { "epoch": 0.7188498402555911, "grad_norm": 5.146446704864502, "learning_rate": 1.5212992545260917e-05, "loss": 0.18657018661499022, "step": 900 }, { "epoch": 0.7987220447284346, "grad_norm": 11.604677200317383, "learning_rate": 1.4680511182108627e-05, "loss": 0.19141025543212892, "step": 1000 }, { "epoch": 0.8785942492012779, "grad_norm": 1.9206146001815796, "learning_rate": 1.4148029818956338e-05, "loss": 0.1725277328491211, "step": 1100 }, { "epoch": 0.9584664536741214, "grad_norm": 11.44105052947998, "learning_rate": 1.3615548455804048e-05, "loss": 0.1731739616394043, "step": 1200 }, { "epoch": 1.0, "eval_accuracy": 0.9707690596851319, "eval_f1": 0.8438061041292639, "eval_loss": 0.1328582614660263, "eval_precision": 0.8190747782002535, "eval_recall": 0.8700774150117806, "eval_runtime": 3.2413, "eval_samples_per_second": 1002.691, "eval_steps_per_second": 125.568, "step": 1252 } ], "logging_steps": 100, "max_steps": 3756, "num_input_tokens_seen": 0, "num_train_epochs": 3, "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}123version https://git-lfs.github.com/spec/v1oid sha256:328415da351d9106c21daadc6ada1c09ef4077b13122f8e106266adfbb7b4a8esize 5265last-checkpoint/config.jsonAdded+51
last-checkpoint/model.safetensorsAdded+3
last-checkpoint/optimizer.ptAdded+3
last-checkpoint/rng_state.pthAdded+3
last-checkpoint/scheduler.ptAdded+3
last-checkpoint/tokenizer.jsonAdded
last-checkpoint/tokenizer_config.jsonAdded+18
last-checkpoint/trainer_state.jsonAdded+139
last-checkpoint/training_args.binAdded+3