Instructions to use vijayk2000/lora_sentiment_analysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use vijayk2000/lora_sentiment_analysis with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("ministral/Ministral-3b-instruct") model = PeftModel.from_pretrained(base_model, "vijayk2000/lora_sentiment_analysis") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from vijayk2000/lora_sentiment_analysis: direct link, hf CLI and curl.
- Browser
- Download file 2.48 kB
-
https://huggingface.co/vijayk2000/lora_sentiment_analysis/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://vijayk2000/lora_sentiment_analysis/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/vijayk2000/lora_sentiment_analysis/resolve/main/tokenizer_config.json
2.48 kB
| { | |
| "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 | |
| }, | |
| "32000": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32001": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32002": { | |
| "content": "<|im_start|>user", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32003": { | |
| "content": "<|im_start|>assistant", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32004": { | |
| "content": "<|im_start|>system", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [ | |
| "<|im_start|>user", | |
| "<|im_start|>assistant", | |
| "<|im_start|>system", | |
| "<|im_end|>", | |
| "<s>", | |
| "<pad>" | |
| ], | |
| "bos_token": "<s>", | |
| "chat_template": "{% for message in messages %}\n{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% if loop.last and add_generation_prompt %}{{'<|im_start|>assistant\n' }}{% endif %}{% endfor %}", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|im_end|>", | |
| "extra_special_tokens": {}, | |
| "legacy": true, | |
| "max_length": 512, | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "<pad>", | |
| "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 | |
| } | |