Run this model with HF Jobs
Run snewcomer/phi-2-finetuned 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/snewcomer/phi-2-finetuned. 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/snewcomer/phi-2-finetuned 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 snewcomer/phi-2-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use snewcomer/phi-2-finetuned with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2") model = PeftModel.from_pretrained(base_model, "snewcomer/phi-2-finetuned") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (5)
1234567824 unmodified lines3334353637383940414243441 unmodified line46474849505152---license: mitbase_model: microsoft/phi-2tags:- generated_from_trainermodel-index:- name: phi-2-finetunedresults: []24 unmodified linesThe following hyperparameters were used during training:- learning_rate: 0.0002- train_batch_size: 4- eval_batch_size: 8- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: constant- num_epochs: 5### Training results1 unmodified line### Framework versions- Transformers 4.35.2- Pytorch 2.1.0+cu121- Datasets 2.16.1- Tokenizers 0.15.012345678924 unmodified lines3435363738394041424344454647481 unmodified line5051525354555657---license: mitlibrary_name: pefttags:- generated_from_trainerbase_model: microsoft/phi-2model-index:- name: phi-2-finetunedresults: []24 unmodified linesThe following hyperparameters were used during training:- learning_rate: 0.0002- train_batch_size: 8- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 4- total_train_batch_size: 32- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: constant- lr_scheduler_warmup_ratio: 0.03- num_epochs: 20### Training results1 unmodified line### Framework versions- PEFT 0.7.1- Transformers 4.36.0- Pytorch 2.1.0+cu121- Datasets 2.16.1- Tokenizers 0.15.0
8 unmodified lines910111213141516171819202122232425268 unmodified lines"layers_pattern": null,"layers_to_transform": null,"loftq_config": {},"lora_alpha": 32,"lora_dropout": 0.1,"megatron_config": null,"megatron_core": "megatron.core","modules_to_save": null,"peft_type": "LORA","r": 32,"rank_pattern": {},"revision": null,"target_modules": ["Wqkv","out_proj"],"task_type": "CAUSAL_LM"}8 unmodified lines9101112131415161718192021222324252627282930318 unmodified lines"layers_pattern": null,"layers_to_transform": null,"loftq_config": {},"lora_alpha": 16,"lora_dropout": 0.1,"megatron_config": null,"megatron_core": "megatron.core","modules_to_save": null,"peft_type": "LORA","r": 16,"rank_pattern": {},"revision": null,"target_modules": ["fc1","lm_head","fc2","k_proj","q_proj","v_proj","o_proj"],"task_type": "CAUSAL_LM"}
123version https://git-lfs.github.com/spec/v1oid sha256:2d4df7325080423adeedaaa1ed0ec3efbfd2a5a24cf444c3497925b8add516fbsize 62931408123version https://git-lfs.github.com/spec/v1oid sha256:6138b3893e6e44c9fe18b3f0aebcb7b4c4214d1d5beaae8ec322c75312525af0size 347895224
123version https://git-lfs.github.com/spec/v1oid sha256:5289985b3ddd04836ed15b8b563425ae2bc87a523e81e35381a556e6c1352094size 5549123version https://git-lfs.github.com/spec/v1oid sha256:051643a4d73b5ab606d4ad87fd0164e759007e3002e069475d2b9ec4f6c1679csize 4600123version https://git-lfs.github.com/spec/v1oid sha256:5b7c8bb8d4339fa7bfee37f1783b0e8244d19d07328a7beb9d45a5fe4df442b6size 4728
README.md+10-5
adapter_config.json+9-4
adapter_model.safetensors+2-2
runs/Jan12_04-01-39_b3be375e58ed/events.out.tfevents.1705032105.b3be375e58ed.157.0Added+3
training_args.bin+2-2