Run this model with HF Jobs
Run dror44/results 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/dror44/results. 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/dror44/results 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 dror44/results with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dror44/results with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("dror44/results", device_map="auto") - Notebooks
- Google Colab
- Kaggle
qualifire/phi-4-hallucination-causallm-sft
Browse filesFiles changed (9)
- README.mdAdded+58
- adapter_config.jsonAdded+39
- adapter_model.safetensorsAdded+3
- merges.txtAdded
- special_tokens_map.jsonAdded+24
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+782
- training_args.binAdded+3
- vocab.jsonAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---base_model: microsoft/phi-4library_name: transformersmodel_name: resultstags:- generated_from_trainer- trl- sftlicence: license---
# Model Card for results
This model is a fine-tuned version of [microsoft/phi-4](https://huggingface.co/microsoft/phi-4).It has been trained using [TRL](https://github.com/huggingface/trl).
## Quick start
```pythonfrom transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"generator = pipeline("text-generation", model="dror44/results", device="cuda")output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```
## Training procedure
This model was trained with SFT.
### Framework versions
- TRL: 0.18.2- Transformers: 4.51.3- Pytorch: 2.5.1- Datasets: 3.6.0- Tokenizers: 0.21.1
## Citations
Cite TRL as: ```bibtex@misc{vonwerra2022trl, title = {{TRL: Transformer Reinforcement Learning}}, author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec}, year = 2020, journal = {GitHub repository}, publisher = {GitHub}, howpublished = {\url{https://github.com/huggingface/trl}}}```123456789101112131415161718192021222324252627282930313233343536373839{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "microsoft/phi-4", "bias": "none", "corda_config": null, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 64, "lora_bias": false, "lora_dropout": 0.05, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "r": 32, "rank_pattern": {}, "revision": null, "target_modules": [ "q_proj", "gate_proj", "v_proj", "o_proj", "k_proj", "down_proj", "up_proj" ], "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_dora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:20329eff1af616e54f32a2f547a4211d4e95010e4407df4cd947a13ca2214cbcsize 170415112123456789101112131415161718192021222324{ "bos_token": { "content": "<|endoftext|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false }, "eos_token": { "content": "<|im_end|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false }, "pad_token": { "content": "<|dummy_85|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false }, "unk_token": "<|endoftext|>"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782{ "add_prefix_space": false, "added_tokens_decoder": { "100256": { "content": "<|dummy_0|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100257": { "content": "<|endoftext|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100258": { "content": "<|fim_prefix|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100259": { "content": "<|fim_middle|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100260": { "content": "<|fim_suffix|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100261": { "content": "<|dummy_1|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100262": { "content": "<|dummy_2|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100263": { "content": "<|dummy_3|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100264": { "content": "<|im_start|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100265": { "content": "<|im_end|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100266": { "content": "<|im_sep|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100267": { "content": "<|dummy_4|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100268": { "content": "<|dummy_5|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100269": { "content": "<|dummy_6|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100270": { "content": "<|dummy_7|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100271": { "content": "<|dummy_8|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100272": { "content": "<|dummy_9|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100273": { "content": "<|dummy_10|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100274": { "content": "<|dummy_11|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100275": { "content": "<|dummy_12|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100276": { "content": "<|endofprompt|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100277": { "content": "<|dummy_13|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100278": { "content": "<|dummy_14|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100279": { "content": "<|dummy_15|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100280": { "content": "<|dummy_16|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100281": { "content": "<|dummy_17|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100282": { "content": "<|dummy_18|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100283": { "content": "<|dummy_19|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100284": { "content": "<|dummy_20|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100285": { "content": "<|dummy_21|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100286": { "content": "<|dummy_22|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100287": { "content": "<|dummy_23|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100288": { "content": "<|dummy_24|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100289": { "content": "<|dummy_25|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100290": { "content": "<|dummy_26|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100291": { "content": "<|dummy_27|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100292": { "content": "<|dummy_28|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100293": { "content": "<|dummy_29|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100294": { "content": "<|dummy_30|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100295": { "content": "<|dummy_31|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100296": { "content": "<|dummy_32|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100297": { "content": "<|dummy_33|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100298": { "content": "<|dummy_34|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100299": { "content": "<|dummy_35|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100300": { "content": "<|dummy_36|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100301": { "content": "<|dummy_37|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100302": { "content": "<|dummy_38|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100303": { "content": "<|dummy_39|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100304": { "content": "<|dummy_40|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100305": { "content": "<|dummy_41|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100306": { "content": "<|dummy_42|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100307": { "content": "<|dummy_43|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100308": { "content": "<|dummy_44|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100309": { "content": "<|dummy_45|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100310": { "content": "<|dummy_46|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100311": { "content": "<|dummy_47|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100312": { "content": "<|dummy_48|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100313": { "content": "<|dummy_49|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100314": { "content": "<|dummy_50|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100315": { "content": "<|dummy_51|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100316": { "content": "<|dummy_52|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100317": { "content": "<|dummy_53|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100318": { "content": "<|dummy_54|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100319": { "content": "<|dummy_55|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100320": { "content": "<|dummy_56|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100321": { "content": "<|dummy_57|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100322": { "content": "<|dummy_58|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100323": { "content": "<|dummy_59|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100324": { "content": "<|dummy_60|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100325": { "content": "<|dummy_61|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100326": { "content": "<|dummy_62|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100327": { "content": "<|dummy_63|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100328": { "content": "<|dummy_64|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100329": { "content": "<|dummy_65|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100330": { "content": "<|dummy_66|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100331": { "content": "<|dummy_67|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100332": { "content": "<|dummy_68|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100333": { "content": "<|dummy_69|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100334": { "content": "<|dummy_70|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100335": { "content": "<|dummy_71|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100336": { "content": "<|dummy_72|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100337": { "content": "<|dummy_73|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100338": { "content": "<|dummy_74|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100339": { "content": "<|dummy_75|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100340": { "content": "<|dummy_76|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100341": { "content": "<|dummy_77|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100342": { "content": "<|dummy_78|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100343": { "content": "<|dummy_79|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100344": { "content": "<|dummy_80|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100345": { "content": "<|dummy_81|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100346": { "content": "<|dummy_82|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100347": { "content": "<|dummy_83|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100348": { "content": "<|dummy_84|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100349": { "content": "<|dummy_85|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100350": { "content": "<|dummy_86|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "100351": { "content": "<|dummy_87|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true } }, "bos_token": "<|endoftext|>", "chat_template": "{% for message in messages %}{% if (message['role'] == 'system') %}{{'<|im_start|>system<|im_sep|>' + message['content'] + '<|im_end|>'}}{% elif (message['role'] == 'user') %}{{'<|im_start|>user<|im_sep|>' + message['content'] + '<|im_end|>'}}{% elif (message['role'] == 'assistant') %}{{'<|im_start|>assistant<|im_sep|>' + message['content'] + '<|im_end|>'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant<|im_sep|>' }}{% endif %}", "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "extra_special_tokens": {}, "model_max_length": 16384, "pad_token": "<|dummy_85|>", "tokenizer_class": "GPT2Tokenizer", "unk_token": "<|endoftext|>"}123version https://git-lfs.github.com/spec/v1oid sha256:4d8bc84dee4f0853de91a2e03740b9f1fdc92e7cf6c33bd662a80d63486f976dsize 5560README.mdAdded+58
adapter_config.jsonAdded+39
adapter_model.safetensorsAdded+3
merges.txtAdded
special_tokens_map.jsonAdded+24
tokenizer.jsonAdded
tokenizer_config.jsonAdded+782
training_args.binAdded+3
vocab.jsonAdded