Run this model with HF Jobs
Run ayeshmaffi/entsql-adapters 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/ayeshmaffi/entsql-adapters. 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/ayeshmaffi/entsql-adapters 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 ayeshmaffi/entsql-adapters with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ayeshmaffi/entsql-adapters with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse filesFiles changed (9)
- .gitattributes+1
- p2_adapt_k30/README.mdAdded+62
- p2_adapt_k30/adapter_config.jsonAdded+51
- p2_adapt_k30/adapter_model.safetensorsAdded+3
- p2_adapt_k30/chat_template.jinjaAdded+54
- p2_adapt_k30/log_history.jsonAdded+274
- p2_adapt_k30/tokenizer.jsonAdded+3
- p2_adapt_k30/tokenizer_config.jsonAdded+30
- p2_adapt_k30/training_args.binAdded+3
35 unmodified lines36373835 unmodified linesp2_sft_sqlite/tokenizer.json filter=lfs diff=lfs merge=lfs -textp2_sft_multi/tokenizer.json filter=lfs diff=lfs merge=lfs -textp2_sft_multi_notag/tokenizer.json filter=lfs diff=lfs merge=lfs -text35 unmodified lines3637383935 unmodified linesp2_sft_sqlite/tokenizer.json filter=lfs diff=lfs merge=lfs -textp2_sft_multi/tokenizer.json filter=lfs diff=lfs merge=lfs -textp2_sft_multi_notag/tokenizer.json filter=lfs diff=lfs merge=lfs -textp2_adapt_k30/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162---base_model: Qwen/Qwen2.5-Coder-1.5B-Instructlibrary_name: peftmodel_name: p2_adapt_k30tags:- base_model:adapter:Qwen/Qwen2.5-Coder-1.5B-Instruct- lora- sft- transformers- trllicence: licensepipeline_tag: text-generation---
# Model Card for p2_adapt_k30
This model is a fine-tuned version of [Qwen/Qwen2.5-Coder-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-1.5B-Instruct).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="None", device_map="auto")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
- PEFT 0.21.2- TRL: 1.15.0- Transformers: 5.19.0- Pytorch: 2.11.0+cu128- Datasets: 5.1.0- Tokenizers: 0.23.3
## Citations
Cite TRL as: ```bibtex@software{vonwerra2020trl, title = {{TRL: Transformers Reinforcement Learning}}, author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin}, license = {Apache-2.0}, url = {https://github.com/huggingface/trl}, year = {2020}}```123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "alora_invocation_tokens": null, "alpha_pattern": {}, "arrow_config": null, "auto_mapping": null, "base_model_name_or_path": "Qwen/Qwen2.5-Coder-1.5B-Instruct", "bias": "none", "corda_config": null, "ensure_weight_tying": false, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "kasa_config": null, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 32, "lora_bias": false, "lora_dropout": 0.05, "lora_ga_config": null, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "monteclora_config": null, "peft_type": "LORA", "peft_version": "0.21.2", "qalora_group_size": 16, "r": 16, "rank_pattern": {}, "revision": null, "target_modules": [ "k_proj", "q_proj", "up_proj", "o_proj", "gate_proj", "v_proj", "down_proj" ], "target_parameters": null, "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_bdlora": null, "use_dora": false, "use_qalora": false, "use_rslora": false, "velora_config": null}123version https://git-lfs.github.com/spec/v1oid sha256:486a40f5b304282a33bb9c4bc57942fa04d470e5b36eb672dfa8a48e716aa96bsize 73911112123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0]['role'] == 'system' %} {{- messages[0]['content'] }} {%- else %} {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} {%- endif %} {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}{%- else %} {%- if messages[0]['role'] == 'system' %} {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} {%- else %} {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} {%- endif %}{%- endif %}{%- for message in messages %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {{- '<|im_start|>' + message.role }} {%- if message.content %} {{- '\n' + message.content }} {%- endif %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '\n<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {{- tool_call.arguments | tojson }} {{- '}\n</tool_call>' }} {%- endfor %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- message.content }} {{- '\n</tool_response>' }} {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} {{- '<|im_end|>\n' }} {%- endif %} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }}{%- endif %}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274[ { "loss": 0.3913595199584961, "grad_norm": 1.3067426681518555, "learning_rate": 4.996988640512931e-05, "entropy": 0.1131426285719499, "mean_token_accuracy": 0.9154015585780144, "num_tokens": 113799.0, "epoch": 0.11494252873563218, "step": 10 }, { "loss": 0.22751073837280272, "grad_norm": 1.6817959547042847, "learning_rate": 4.963194105972353e-05, "entropy": 0.14193916907534004, "mean_token_accuracy": 0.9498580604791641, "num_tokens": 224408.0, "epoch": 0.22988505747126436, "step": 20 }, { "loss": 0.21328067779541016, "grad_norm": 1.0274571180343628, "learning_rate": 4.892350839330522e-05, "entropy": 0.16837971275672317, "mean_token_accuracy": 0.9424267783761024, "num_tokens": 336977.0, "epoch": 0.3448275862068966, "step": 30 }, { "loss": 0.16965222358703613, "grad_norm": 1.0189515352249146, "learning_rate": 4.785524389258827e-05, "entropy": 0.19550253124907613, "mean_token_accuracy": 0.942132280766964, "num_tokens": 450427.0, "epoch": 0.45977011494252873, "step": 40 }, { "loss": 0.07765832543373108, "grad_norm": 0.547782838344574, "learning_rate": 4.6443215250006806e-05, "entropy": 0.12098830374889076, "mean_token_accuracy": 0.9796079933643341, "num_tokens": 561327.0, "epoch": 0.5747126436781609, "step": 50 }, { "loss": 0.12625770568847655, "grad_norm": 0.6637923717498779, "learning_rate": 4.470866069066516e-05, "entropy": 0.12439296562224626, "mean_token_accuracy": 0.9680860310792923, "num_tokens": 671826.0, "epoch": 0.6896551724137931, "step": 60 }, { "loss": 0.14627047777175903, "grad_norm": 1.994836688041687, "learning_rate": 4.267766952966369e-05, "entropy": 0.12146058422513306, "mean_token_accuracy": 0.9636907607316971, "num_tokens": 784477.0, "epoch": 0.8045977011494253, "step": 70 }, { "loss": 0.1100589394569397, "grad_norm": 0.9094719290733337, "learning_rate": 4.038078976451567e-05, "entropy": 0.09895077385008336, "mean_token_accuracy": 0.9730426222085953, "num_tokens": 897946.0, "epoch": 0.9195402298850575, "step": 80 }, { "loss": 0.06802116632461548, "grad_norm": 0.3451349437236786, "learning_rate": 3.785256860483054e-05, "entropy": 0.08416362572461367, "mean_token_accuracy": 0.9830877870321274, "num_tokens": 1008832.0, "epoch": 1.0344827586206897, "step": 90 }, { "loss": 0.042569002509117125, "grad_norm": 0.8225335478782654, "learning_rate": 3.513103285012475e-05, "entropy": 0.078519985685125, "mean_token_accuracy": 0.9919128090143203, "num_tokens": 1121589.0, "epoch": 1.1494252873563218, "step": 100 }, { "loss": 0.04671842157840729, "grad_norm": 0.5390254259109497, "learning_rate": 3.225711693136156e-05, "entropy": 0.08781632950995118, "mean_token_accuracy": 0.9842821314930916, "num_tokens": 1234985.0, "epoch": 1.264367816091954, "step": 110 }, { "loss": 0.03658854961395264, "grad_norm": 0.42222297191619873, "learning_rate": 2.9274047219007534e-05, "entropy": 0.06207439152058214, "mean_token_accuracy": 0.9920363619923591, "num_tokens": 1348357.0, "epoch": 1.3793103448275863, "step": 120 }, { "loss": 0.055119413137435916, "grad_norm": 0.8530524969100952, "learning_rate": 2.6226691858185454e-05, "entropy": 0.0580711154412711, "mean_token_accuracy": 0.9862931475043297, "num_tokens": 1460855.0, "epoch": 1.4942528735632183, "step": 130 }, { "loss": 0.01918347328901291, "grad_norm": 0.208377867937088, "learning_rate": 2.3160885910008318e-05, "entropy": 0.03952930783270858, "mean_token_accuracy": 0.9976332232356071, "num_tokens": 1572850.0, "epoch": 1.6091954022988506, "step": 140 }, { "loss": 0.02823001444339752, "grad_norm": 0.1395958662033081, "learning_rate": 2.0122741949596797e-05, "entropy": 0.04509537811391055, "mean_token_accuracy": 0.989780405163765, "num_tokens": 1682665.0, "epoch": 1.7241379310344827, "step": 150 }, { "loss": 0.01801607310771942, "grad_norm": 0.3230888247489929, "learning_rate": 1.7157956490027717e-05, "entropy": 0.038432734736124984, "mean_token_accuracy": 0.9966415286064148, "num_tokens": 1795238.0, "epoch": 1.839080459770115, "step": 160 }, { "loss": 0.030991193652153016, "grad_norm": 0.39014577865600586, "learning_rate": 1.4311122664242954e-05, "entropy": 0.04414114065875765, "mean_token_accuracy": 0.990665826201439, "num_tokens": 1906376.0, "epoch": 1.9540229885057472, "step": 170 }, { "loss": 0.02422603517770767, "grad_norm": 0.8667232990264893, "learning_rate": 1.1625059502822574e-05, "entropy": 0.03900346811569762, "mean_token_accuracy": 0.9941606625914574, "num_tokens": 2016215.0, "epoch": 2.0689655172413794, "step": 180 }, { "loss": 0.009574232250452041, "grad_norm": 0.11774289608001709, "learning_rate": 9.140167895908867e-06, "entropy": 0.01978815757029224, "mean_token_accuracy": 0.9986724123358727, "num_tokens": 2128849.0, "epoch": 2.1839080459770113, "step": 190 }, { "loss": 0.016012923419475557, "grad_norm": 0.2782202363014221, "learning_rate": 6.893822926213331e-06, "entropy": 0.03235493175161537, "mean_token_accuracy": 0.9964341595768929, "num_tokens": 2241694.0, "epoch": 2.2988505747126435, "step": 200 }, { "loss": 0.00876326933503151, "grad_norm": 0.06847874075174332, "learning_rate": 4.91981171298388e-06, "entropy": 0.023295050859451293, "mean_token_accuracy": 0.9991974830627441, "num_tokens": 2352633.0, "epoch": 2.413793103448276, "step": 210 }, { "loss": 0.011192652583122253, "grad_norm": 0.46351704001426697, "learning_rate": 3.2478252222822164e-06, "entropy": 0.026329852001799735, "mean_token_accuracy": 0.9983164638280868, "num_tokens": 2465270.0, "epoch": 2.528735632183908, "step": 220 }, { "loss": 0.010653501003980636, "grad_norm": 0.4657852053642273, "learning_rate": 1.9030116872178316e-06, "entropy": 0.02588611029495951, "mean_token_accuracy": 0.9976460456848144, "num_tokens": 2576621.0, "epoch": 2.6436781609195403, "step": 230 }, { "loss": 0.016839048266410826, "grad_norm": 0.16932636499404907, "learning_rate": 9.05598355114004e-07, "entropy": 0.024495924860821104, "mean_token_accuracy": 0.9958831280469894, "num_tokens": 2689100.0, "epoch": 2.7586206896551726, "step": 240 }, { "loss": 0.005830444768071175, "grad_norm": 0.18280643224716187, "learning_rate": 2.705872508804747e-07, "entropy": 0.01845469349063933, "mean_token_accuracy": 0.9994047611951828, "num_tokens": 2800492.0, "epoch": 2.873563218390805, "step": 250 }, { "loss": 0.019720664620399474, "grad_norm": 0.25705161690711975, "learning_rate": 7.529532594893751e-09, "entropy": 0.030076536039996427, "mean_token_accuracy": 0.9961545959115028, "num_tokens": 2914077.0, "epoch": 2.9885057471264367, "step": 260 }, { "train_runtime": 1018.1436, "train_samples_per_second": 1.025, "train_steps_per_second": 0.256, "total_flos": 2.332266309501235e+16, "train_loss": 0.07397060847834067, "entropy": 0.023752540117129683, "mean_token_accuracy": 1.0, "num_tokens": 2925267.0, "epoch": 3.0, "step": 261 }]123version https://git-lfs.github.com/spec/v1oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8size 11421892123456789101112131415161718192021222324252627282930{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "extra_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "is_local": false, "local_files_only": false, "model_max_length": 32768, "pad_token": "<|endoftext|>", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}123version https://git-lfs.github.com/spec/v1oid sha256:4b169e70e6b69f19a21185a4f8300f886759826af7eceeda3d84a0694d62f338size 5713.gitattributes+1
p2_adapt_k30/README.mdAdded+62
p2_adapt_k30/adapter_config.jsonAdded+51
p2_adapt_k30/adapter_model.safetensorsAdded+3
p2_adapt_k30/chat_template.jinjaAdded+54
p2_adapt_k30/log_history.jsonAdded+274
p2_adapt_k30/tokenizer.jsonAdded+3
p2_adapt_k30/tokenizer_config.jsonAdded+30
p2_adapt_k30/training_args.binAdded+3