Run this model with HF Jobs
Run AFZAL0008/SentimentalAnalysisLora 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/AFZAL0008/SentimentalAnalysisLora. 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/AFZAL0008/SentimentalAnalysisLora 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 AFZAL0008/SentimentalAnalysisLora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AFZAL0008/SentimentalAnalysisLora with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AFZAL0008/SentimentalAnalysisLora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse filesFiles changed (10)
- README.mdAdded+58
- adapter_config.jsonAdded+40
- adapter_model.safetensorsAdded+3
- runs/Jul19_12-33-14_ceb77d15069a/events.out.tfevents.1752928396.ceb77d15069a.169.0Added+3
- runs/Jul19_12-33-14_ceb77d15069a/events.out.tfevents.1752928544.ceb77d15069a.169.1Added+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+56
- training_args.binAdded+3
- vocab.txtAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---base_model: distilbert-base-uncasedlibrary_name: transformersmodel_name: SentimentalAnalysisLoratags:- generated_from_trainer- trl- sftlicence: license---
# Model Card for SentimentalAnalysisLora
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased).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="AFZAL0008/SentimentalAnalysisLora", 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/icfossorg/huggingface/runs/a7lg2brn)
This model was trained with SFT.
### Framework versions
- TRL: 0.19.1- Transformers: 4.53.2- Pytorch: 2.6.0+cu124- Datasets: 4.0.0- Tokenizers: 0.21.2
## 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}}}```12345678910111213141516171819202122232425262728293031323334353637383940{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "distilbert-base-uncased", "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": 8, "lora_bias": false, "lora_dropout": 0.05, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": [ "classifier", "score" ], "peft_type": "LORA", "qalora_group_size": 16, "r": 6, "rank_pattern": {}, "revision": null, "target_modules": [ "v_lin", "q_lin", "k_lin" ], "task_type": "SEQ_CLS", "trainable_token_indices": null, "use_dora": false, "use_qalora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:f108bea8b5002258ff7d8055fd257718c3e172ac2f897aecda69026bd94d3dd8size 3037632123version https://git-lfs.github.com/spec/v1oid sha256:8a49ea96a1462d8f3007bca274051f99422462c852ed5189c4fd4086f5adccc6size 7735123version https://git-lfs.github.com/spec/v1oid sha256:c18d2d9a9289da675a041bdc86d03ec6354bab6558c3f0dfb978d556f11748e0size 883841234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ "added_tokens_decoder": { "0": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "100": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "101": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "102": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "103": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "clean_up_tokenization_spaces": false, "cls_token": "[CLS]", "do_lower_case": true, "extra_special_tokens": {}, "mask_token": "[MASK]", "model_max_length": 512, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "DistilBertTokenizer", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:45bb3630c0a81431723fb0589e0ace3564debfb0414c5fec3d355f2c29542cf1size 5752README.mdAdded+58
adapter_config.jsonAdded+40
adapter_model.safetensorsAdded+3
runs/Jul19_12-33-14_ceb77d15069a/events.out.tfevents.1752928396.ceb77d15069a.169.0Added+3
runs/Jul19_12-33-14_ceb77d15069a/events.out.tfevents.1752928544.ceb77d15069a.169.1Added+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+56
training_args.binAdded+3
vocab.txtAdded