Run this model with HF Jobs
Run DLCS/contract-clause-phi3-lora 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/DLCS/contract-clause-phi3-lora. 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/DLCS/contract-clause-phi3-lora 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 DLCS/contract-clause-phi3-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use DLCS/contract-clause-phi3-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-4k-instruct") model = PeftModel.from_pretrained(base_model, "DLCS/contract-clause-phi3-lora") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 250, checkpoint
Browse filesFiles changed (5)
123version https://git-lfs.github.com/spec/v1oid sha256:2b1f4102fa27abc3c31595f882bc3f5019150c4ae0354b0153383394872ce002size 50366280123version https://git-lfs.github.com/spec/v1oid sha256:8f7d277987adf7ca0941bae8de058bc019f3ce85173c12db70caecefcc182971size 50366280
123version https://git-lfs.github.com/spec/v1oid sha256:e451118a5777fd7df830fb9ac804f8408adde11798ac72f9599d6af996f27bd2size 51423589123version https://git-lfs.github.com/spec/v1oid sha256:1ecf2b940b90db4471e0450023e2a64305efaf02e46db8dd897ea1745e7589aasize 51423589
123version https://git-lfs.github.com/spec/v1oid sha256:af7d94b4f9c6fa7ceb182996c21ea3c8ccaeb6e3b6a663c638f9313e8602b3b2size 14645123version https://git-lfs.github.com/spec/v1oid sha256:9a293f1a3b4a23a3cb57acac90399b9b6fc68748c4b2c9e6a04eed0b85f1e3basize 14645
123version https://git-lfs.github.com/spec/v1oid sha256:4f315367169f0f5657c4c951287617fc50b51ccf33b544a5de16c30f9933c5b6size 1465123version https://git-lfs.github.com/spec/v1oid sha256:895aed6196643d36ef6cbddb8f6ec7dfed3dfb1782bccd838262ea1bd4f43d03size 1465
1 unmodified line2345678910186 unmodified lines19719819920020120213 unmodified lines2162172182192202212221 unmodified line"best_global_step": 225,"best_metric": 0.3082694709300995,"best_model_checkpoint": "./outputs/phi3-clause-lora/checkpoint-225","epoch": 1.1977287909151637,"eval_steps": 25,"global_step": 225,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,186 unmodified lines"eval_samples_per_second": 6.599,"eval_steps_per_second": 0.825,"step": 225}],"logging_steps": 25,13 unmodified lines"attributes": {}}},"total_flos": 1.37909511972864e+16,"train_batch_size": 2,"trial_name": null,"trial_params": null1 unmodified line2345678910186 unmodified lines19719819920020120220320420520620720820921021121221321421521621721821922022122222313 unmodified lines2372382392402412422431 unmodified line"best_global_step": 225,"best_metric": 0.3082694709300995,"best_model_checkpoint": "./outputs/phi3-clause-lora/checkpoint-225","epoch": 1.3313293253173013,"eval_steps": 25,"global_step": 250,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,186 unmodified lines"eval_samples_per_second": 6.599,"eval_steps_per_second": 0.825,"step": 225},{"entropy": 0.08755811513226945,"epoch": 1.3313293253173013,"grad_norm": 0.76953125,"learning_rate": 5.40267260547896e-05,"loss": 0.07890403747558594,"mean_token_accuracy": 0.9718732798099518,"num_tokens": 532346.0,"step": 250},{"epoch": 1.3313293253173013,"eval_entropy": 0.2591260080442811,"eval_loss": 0.3835108280181885,"eval_mean_token_accuracy": 0.8907573750126834,"eval_num_tokens": 532346.0,"eval_runtime": 428.291,"eval_samples_per_second": 6.612,"eval_steps_per_second": 0.827,"step": 250}],"logging_steps": 25,13 unmodified lines"attributes": {}}},"total_flos": 1.5338604885700608e+16,"train_batch_size": 2,"trial_name": null,"trial_params": null
last-checkpoint/adapter_model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/rng_state.pth+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+24-3