Instructions to use fastpixels/odia-tutor-e07-checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fastpixels/odia-tutor-e07-checkpoints with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("fastpixels/odia-tutor-e07-checkpoints", device_map="auto") - Notebooks
- Google Colab
- Kaggle
sarvam1-sft/checkpoint-4272
Browse files- sarvam1-sft/checkpoint-4272/chat_template.jinja +22 -0
- sarvam1-sft/checkpoint-4272/config.json +32 -0
- sarvam1-sft/checkpoint-4272/generation_config.json +13 -0
- sarvam1-sft/checkpoint-4272/model.safetensors +3 -0
- sarvam1-sft/checkpoint-4272/optimizer.pt +3 -0
- sarvam1-sft/checkpoint-4272/rng_state.pth +3 -0
- sarvam1-sft/checkpoint-4272/scheduler.pt +3 -0
- sarvam1-sft/checkpoint-4272/tokenizer.json +0 -0
- sarvam1-sft/checkpoint-4272/tokenizer_config.json +16 -0
- sarvam1-sft/checkpoint-4272/trainer_state.json +0 -0
- sarvam1-sft/checkpoint-4272/training_args.bin +3 -0
sarvam1-sft/checkpoint-4272/chat_template.jinja
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}
|
| 2 |
+
{% for message in loop_messages %}
|
| 3 |
+
{% if message['role'] not in ['user', 'assistant', 'tool_calls'] %}
|
| 4 |
+
{{ raise_exception('Invalid role: ' + message['role'] + '. Must be user, assistant, or tool_calls.') }}
|
| 5 |
+
{% endif %}
|
| 6 |
+
{% if loop.index0 == 0 and system_message != false %}
|
| 7 |
+
{% set content = '<<SYS>>
|
| 8 |
+
' + system_message + '
|
| 9 |
+
<</SYS>>
|
| 10 |
+
|
| 11 |
+
' + message['content'] %}
|
| 12 |
+
{% else %}
|
| 13 |
+
{% set content = message['content'] %}
|
| 14 |
+
{% endif %}
|
| 15 |
+
{% if message['role'] == 'user' %}
|
| 16 |
+
{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}
|
| 17 |
+
{% elif message['role'] == 'assistant' %}
|
| 18 |
+
{{ ' ' + content.strip() + ' ' + eos_token }}
|
| 19 |
+
{% elif message['role'] == 'tool_calls' %}
|
| 20 |
+
{{ ' [TOOL_CALLS] ' + content.strip() + ' [/TOOL_CALLS] ' }}
|
| 21 |
+
{% endif %}
|
| 22 |
+
{% endfor %}
|
sarvam1-sft/checkpoint-4272/config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 1,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"head_dim": 128,
|
| 11 |
+
"hidden_act": "silu",
|
| 12 |
+
"hidden_size": 2048,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 11008,
|
| 15 |
+
"max_position_embeddings": 8192,
|
| 16 |
+
"mlp_bias": false,
|
| 17 |
+
"model_type": "llama",
|
| 18 |
+
"num_attention_heads": 16,
|
| 19 |
+
"num_hidden_layers": 28,
|
| 20 |
+
"num_key_value_heads": 8,
|
| 21 |
+
"pad_token_id": 2,
|
| 22 |
+
"pretraining_tp": 1,
|
| 23 |
+
"rms_norm_eps": 1e-06,
|
| 24 |
+
"rope_parameters": {
|
| 25 |
+
"rope_theta": 10000.0,
|
| 26 |
+
"rope_type": "default"
|
| 27 |
+
},
|
| 28 |
+
"tie_word_embeddings": false,
|
| 29 |
+
"transformers_version": "5.17.0",
|
| 30 |
+
"use_cache": false,
|
| 31 |
+
"vocab_size": 68098
|
| 32 |
+
}
|
sarvam1-sft/checkpoint-4272/generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 1,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
2
|
| 6 |
+
],
|
| 7 |
+
"max_length": 8192,
|
| 8 |
+
"pad_token_id": 2,
|
| 9 |
+
"repetition_penalty": 1.05,
|
| 10 |
+
"temperature": 0.1,
|
| 11 |
+
"top_p": 0.95,
|
| 12 |
+
"transformers_version": "5.17.0"
|
| 13 |
+
}
|
sarvam1-sft/checkpoint-4272/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f98f78b644e2a323520b5a919c160a2ca17455fa748be744439341311599af27
|
| 3 |
+
size 10100413160
|
sarvam1-sft/checkpoint-4272/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fec8fd1c6b2b9fa721405fa18b0d18e21f092b4589a24b21a51c4733f8c8cd2b
|
| 3 |
+
size 20200994231
|
sarvam1-sft/checkpoint-4272/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea11996454b5587fcf33ae0ab5cf14b2031bf5f53f8c2ed5a48e87de31e29c84
|
| 3 |
+
size 14645
|
sarvam1-sft/checkpoint-4272/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86a37d50d48d001254bfa87996d0e082b9170e1a515ea4461975353c3bc0ac3b
|
| 3 |
+
size 1465
|
sarvam1-sft/checkpoint-4272/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sarvam1-sft/checkpoint-4272/tokenizer_config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"is_local": true,
|
| 8 |
+
"local_files_only": false,
|
| 9 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 10 |
+
"pad_token": "</s>",
|
| 11 |
+
"sp_model_kwargs": {},
|
| 12 |
+
"spaces_between_special_tokens": false,
|
| 13 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 14 |
+
"unk_token": "<unk>",
|
| 15 |
+
"use_default_system_prompt": false
|
| 16 |
+
}
|
sarvam1-sft/checkpoint-4272/trainer_state.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sarvam1-sft/checkpoint-4272/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d170d90aca06ba4b4181d119bcc3b7e050c8521b88c82dde31b983e49f075d06
|
| 3 |
+
size 5841
|