Run this model with HF Jobs
Run Badribn/Ministral_3b_sql_instruct 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/Badribn/Ministral_3b_sql_instruct. 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/Badribn/Ministral_3b_sql_instruct 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 Badribn/Ministral_3b_sql_instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Badribn/Ministral_3b_sql_instruct with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Badribn/Ministral_3b_sql_instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (8)
- README.mdAdded+58
- adapter_config.jsonAdded+20
- adapter_model.safetensorsAdded+3
- runs/Mar11_07-04-42_215d55e723fe/events.out.tfevents.1741676742.215d55e723fe.1327.0Added+3
- special_tokens_map.jsonAdded+35
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+56
- training_args.binAdded+3
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---base_model: ministral/Ministral-3b-instructlibrary_name: transformersmodel_name: Ministral_3b_sql_instructtags:- generated_from_trainer- trl- sftlicence: license---
# Model Card for Ministral_3b_sql_instruct
This model is a fine-tuned version of [ministral/Ministral-3b-instruct](https://huggingface.co/ministral/Ministral-3b-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="Badribn/Ministral_3b_sql_instruct", device="cuda")output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```
## Training procedure
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/badrinarayan-analytics-vidhya/mistral_instruct_finetuning/runs/wdtz6c20)
This model was trained with SFT.
### Framework versions
- TRL: 0.15.2- Transformers: 4.48.3- Pytorch: 2.5.1- Datasets: 3.3.2- Tokenizers: 0.21.0
## 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édec}, year = 2020, journal = {GitHub repository}, publisher = {GitHub}, howpublished = {\url{https://github.com/huggingface/trl}}}```1234567891011121314151617181920{ "auto_mapping": null, "base_model_name_or_path": "ministral/Ministral-3b-instruct", "exclude_modules": null, "fan_in_fan_out": false, "feedforward_modules": [ "down_proj" ], "inference_mode": true, "init_ia3_weights": true, "modules_to_save": null, "peft_type": "IA3", "revision": null, "target_modules": [ "k_proj", "v_proj", "down_proj" ], "task_type": "CAUSAL_LM"}123version https://git-lfs.github.com/spec/v1oid sha256:ea3d8d7aed5b349a770c3a3e713d2c4ef3f7e4c331d3a84fe9acd7100ae2d040size 922600123version https://git-lfs.github.com/spec/v1oid sha256:2323d722a5c568c1ede438fa3c50c984dda00498e13d730316edbe3a5033df56size 202981234567891011121314151617181920212223242526272829303132333435{ "additional_special_tokens": [ "<unk>", "<s>", "</s>" ], "bos_token": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ "add_bos_token": true, "add_eos_token": false, "add_prefix_space": null, "added_tokens_decoder": { "0": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "additional_special_tokens": [ "<unk>", "<s>", "</s>" ], "bos_token": "<s>", "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{bos_token + message['role'] + '\n' + message['content'] + eos_token + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ bos_token + 'assistant\n' }}{% endif %}", "clean_up_tokenization_spaces": false, "eos_token": "</s>", "extra_special_tokens": {}, "legacy": true, "max_length": 512, "model_max_length": 1000000000000000019884624838656, "pad_to_multiple_of": null, "pad_token": "</s>", "pad_token_type_id": 0, "padding_side": "left", "sp_model_kwargs": {}, "spaces_between_special_tokens": false, "stride": 0, "tokenizer_class": "LlamaTokenizer", "truncation_side": "right", "truncation_strategy": "longest_first", "unk_token": "<unk>", "use_default_system_prompt": true}123version https://git-lfs.github.com/spec/v1oid sha256:798f20f377f95f5fb667fb98f21f119f606fba463148279f190cc86d79c1b5c4size 5624README.mdAdded+58
adapter_config.jsonAdded+20
adapter_model.safetensorsAdded+3
runs/Mar11_07-04-42_215d55e723fe/events.out.tfevents.1741676742.215d55e723fe.1327.0Added+3
special_tokens_map.jsonAdded+35
tokenizer.jsonAdded
tokenizer_config.jsonAdded+56
training_args.binAdded+3