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 tokenizer_config.json from shreyansh12183/olmo2-7b-astro-logic: direct link, hf CLI and curl.
- Browser
- Download file 913 Bytes
-
https://huggingface.co/shreyansh12183/olmo2-7b-astro-logic/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://shreyansh12183/olmo2-7b-astro-logic/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/shreyansh12183/olmo2-7b-astro-logic/resolve/main/tokenizer_config.json
913 Bytes
| { | |
| "add_prefix_space": false, | |
| "backend": "tokenizers", | |
| "bos_token": "<|endoftext|>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|endoftext|>", | |
| "is_local": false, | |
| "model_max_length": 1000000000000000019884624838656, | |
| "model_specific_special_tokens": {}, | |
| "pad_token": "<|pad|>", | |
| "tokenizer_class": "GPT2Tokenizer", | |
| "unk_token": "<|endoftext|>", | |
| "chat_template": "{{ bos_token }}{% for message in messages %}{% if message['role'] == 'system' %}{{ '<|system|>\n' + message['content'] + '\n' }}{% elif message['role'] == 'user' %}{{ '<|user|>\n' + message['content'] + '\n' }}{% elif message['role'] == 'assistant' %}{% if not loop.last %}{{ '<|assistant|>\n' + message['content'] + eos_token + '\n' }}{% else %}{{ '<|assistant|>\n' + message['content'] + eos_token }}{% endif %}{% endif %}{% if loop.last and add_generation_prompt %}{{ '<|assistant|>\n' }}{% endif %}{% endfor %}" | |
| } |