Text Generation
PEFT
Safetensors
English
astrophysics
orbital-mechanics
cosmology
celestial-mechanics
lora
vigyan-ai
conversational
Instructions to use shreyansh12183/olmo2-7b-astro-logic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use shreyansh12183/olmo2-7b-astro-logic with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("allenai/OLMo-2-1124-7B-Instruct") model = PeftModel.from_pretrained(base_model, "shreyansh12183/olmo2-7b-astro-logic") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from shreyansh12183/olmo2-7b-astro-logic: direct link, hf CLI and curl.
- Browser
- Download file 508 Bytes
-
https://huggingface.co/shreyansh12183/olmo2-7b-astro-logic/resolve/main/chat_template.jinja
- Command line
-
hf download hf://shreyansh12183/olmo2-7b-astro-logic/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/shreyansh12183/olmo2-7b-astro-logic/resolve/main/chat_template.jinja
508 Bytes
| {{ bos_token }}{% for message in messages %}{% if message['role'] == 'system' %}{{ '<|system|> | |
| ' + message['content'] + ' | |
| ' }}{% elif message['role'] == 'user' %}{{ '<|user|> | |
| ' + message['content'] + ' | |
| ' }}{% elif message['role'] == 'assistant' %}{% if not loop.last %}{{ '<|assistant|> | |
| ' + message['content'] + eos_token + ' | |
| ' }}{% else %}{{ '<|assistant|> | |
| ' + message['content'] + eos_token }}{% endif %}{% endif %}{% if loop.last and add_generation_prompt %}{{ '<|assistant|> | |
| ' }}{% endif %}{% endfor %} |