Instructions to use shubhamdatavtar/lora_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shubhamdatavtar/lora_model with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("shubhamdatavtar/lora_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
Download chat_template.jinja from shubhamdatavtar/lora_model: direct link, hf CLI and curl.
- Browser
- Download file 620 Bytes
-
https://huggingface.co/shubhamdatavtar/lora_model/resolve/main/chat_template.jinja
- Command line
-
hf download hf://shubhamdatavtar/lora_model/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/shubhamdatavtar/lora_model/resolve/main/chat_template.jinja
620 Bytes
| {{ bos_token }}{{ 'Below describes some details about some passengers who went on the Titanic. | |
| Predict whether they survived or perished based on their characteristics. | |
| Output 1 if they survived, and 0 if they died.' }}{% for message in messages %}{% if message['role'] == 'user' %}{{ ' | |
| >>> Passenger Details: | |
| ' + message['content'] }}{% elif message['role'] == 'assistant' %}{{ ' | |
| >>> Did they survive? | |
| ' + message['content'] + '<end_of_turn>' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ ' | |
| >>> Did they survive? | |
| ' }}{% endif %} |