初始化项目,由ModelHub XC社区提供模型
Model: SKIS-AI-Research/ODIN-C1 Source: Original Platform
This commit is contained in:
56
.gitattributes
vendored
Normal file
56
.gitattributes
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||
*.model filter=lfs diff=lfs merge=lfs -text
|
||||
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||
LFM2.5-1.2B-Instruct.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
LFM2.5-1.2B-Instruct.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
LFM2.5-1.2B-Instruct.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
LFM2.5-1.2B-Thinking.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
LFM2.5-1.2B-Thinking.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
LFM2.5-1.2B-Thinking.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
ODIN-C1.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
ODIN-C1.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
ODIN-C1.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
odin_c1_merged_16bit.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
odin_c1_merged_16bit.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
odin_c1_merged_16bit.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
LFM2.5-1.2B-Distilled-Claude-4.6.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
LFM2.5-1.2B-Distilled-Claude-4.6.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
LFM2.5-1.2B-Distilled-Claude-4.6.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
_root_.unsloth_studio_exports__root_ckpt_ckpt2_1778163520__root_ckpt_ckpt2_1778163520_1778163985.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
_root_.unsloth_studio_exports__root_ckpt_ckpt2_1778163520__root_ckpt_ckpt2_1778163520_1778163985.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
_root_.unsloth_studio_exports__root_ckpt_ckpt2_1778163520__root_ckpt_ckpt2_1778163520_1778163985.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
_root_.unsloth_studio_exports__root_ckpt_ckpt2_1778163520__root_ckpt_ckpt2_1778163520_1778163985.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
_root_.unsloth_studio_exports__root_ckpt_ckpt2_1778163520__root_ckpt_ckpt2_1778163520_1778163985.BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
_root_.unsloth_studio_exports__root_ckpt_ckpt2_1778163520__root_ckpt_ckpt2_1778163520_1778163985.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
59
README.md
Normal file
59
README.md
Normal file
@@ -0,0 +1,59 @@
|
||||
---
|
||||
base_model:
|
||||
- LiquidAI/LFM2.5-1.2B-Base
|
||||
tags:
|
||||
- text-generation-inference
|
||||
- transformers
|
||||
- unsloth
|
||||
- lfm2
|
||||
license: apache-2.0
|
||||
language:
|
||||
- en
|
||||
datasets:
|
||||
- unsloth/alpaca-cleaned
|
||||
- uniquealexx/Kimi-K2.6-Thinking-200x
|
||||
- nvidia/Nemotron-Cascade-2-SFT-Data
|
||||
- iamtarun/python_code_instructions_18k_alpaca
|
||||
- Entity-27th/ODIN-C1-SFT-Mix
|
||||
- Entity-27th/ODIN-C1-Realign
|
||||
---
|
||||
|
||||

|
||||
|
||||
ODIN-C1(**O**n-**D**evice accelerated **I**ntelligent **N**etwork-**C**ode **1**) is a sLM engineered specifically for on-device programming.
|
||||
Based on LFM architecture, ODIN-C1 provides various advantages over other models such as hardware-agnostic inference affinity.
|
||||
|
||||
## Quick start
|
||||
|
||||
```python
|
||||
from transformers import pipeline
|
||||
|
||||
question = "Can you write a simple Python script that shows the Fibonacci sequence?"
|
||||
generator = pipeline("text-generation", model="SKIS-AI-Research/ODIN-C1", device="cuda")
|
||||
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
||||
print(output["generated_text"])
|
||||
```
|
||||
|
||||
## Training procedure
|
||||
|
||||
This model was trained with Supervised Fine-Tuning(SFT) on a single AMD Instinct MI300X accelerator and GeForce RTX 4070 Laptop GPU.
|
||||
|
||||
## Citations
|
||||
|
||||
|
||||
|
||||
Cite TRL as:
|
||||
|
||||
```bibtex
|
||||
@software{vonwerra2020trl,
|
||||
title = {{TRL: Transformers Reinforcement Learning}},
|
||||
author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
|
||||
license = {Apache-2.0},
|
||||
url = {https://github.com/huggingface/trl},
|
||||
year = {2020}
|
||||
}
|
||||
``
|
||||
|
||||
This lfm2 model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
|
||||
|
||||
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
||||
7
chat_template.jinja
Normal file
7
chat_template.jinja
Normal file
@@ -0,0 +1,7 @@
|
||||
{{- bos_token -}}{%- set system_prompt = "" -%}{%- set ns = namespace(system_prompt="") -%}{%- if messages[0]["role"] == "system" -%} {%- set ns.system_prompt = messages[0]["content"] -%} {%- set messages = messages[1:] -%}{%- endif -%}{%- if tools -%} {%- set ns.system_prompt = ns.system_prompt + ("
|
||||
" if ns.system_prompt else "") + "List of tools: <|tool_list_start|>[" -%} {%- for tool in tools -%} {%- if tool is not string -%} {%- set tool = tool | tojson -%} {%- endif -%} {%- set ns.system_prompt = ns.system_prompt + tool -%} {%- if not loop.last -%} {%- set ns.system_prompt = ns.system_prompt + ", " -%} {%- endif -%} {%- endfor -%} {%- set ns.system_prompt = ns.system_prompt + "]<|tool_list_end|>" -%}{%- endif -%}{%- if ns.system_prompt -%} {{- "<|im_start|>system
|
||||
" + ns.system_prompt + "<|im_end|>
|
||||
" -}}{%- endif -%}{%- for message in messages -%} {{- "<|im_start|>" + message["role"] + "
|
||||
" -}} {%- set content = message["content"] -%} {%- if content is not string -%} {%- set content = content | tojson -%} {%- endif -%} {%- if message["role"] == "tool" -%} {%- set content = "<|tool_response_start|>" + content + "<|tool_response_end|>" -%} {%- endif -%} {{- content + "<|im_end|>
|
||||
" -}}{%- endfor -%}{%- if add_generation_prompt -%} {{- "<|im_start|>assistant
|
||||
" -}}{%- endif -%}
|
||||
58
config.json
Normal file
58
config.json
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"architectures": [
|
||||
"Lfm2ForCausalLM"
|
||||
],
|
||||
"block_auto_adjust_ff_dim": true,
|
||||
"block_dim": 2048,
|
||||
"block_ff_dim": 12288,
|
||||
"block_ffn_dim_multiplier": 1.0,
|
||||
"block_mlp_init_scale": 1.0,
|
||||
"block_multiple_of": 256,
|
||||
"block_norm_eps": 1e-05,
|
||||
"block_out_init_scale": 1.0,
|
||||
"block_use_swiglu": true,
|
||||
"block_use_xavier_init": true,
|
||||
"bos_token_id": 1,
|
||||
"conv_L_cache": 3,
|
||||
"conv_bias": false,
|
||||
"conv_dim": 2048,
|
||||
"conv_use_xavier_init": true,
|
||||
"torch_dtype": "bfloat16",
|
||||
"eos_token_id": 7,
|
||||
"hidden_size": 2048,
|
||||
"initializer_range": 0.02,
|
||||
"intermediate_size": 12288,
|
||||
"layer_types": [
|
||||
"conv",
|
||||
"conv",
|
||||
"full_attention",
|
||||
"conv",
|
||||
"conv",
|
||||
"full_attention",
|
||||
"conv",
|
||||
"conv",
|
||||
"full_attention",
|
||||
"conv",
|
||||
"full_attention",
|
||||
"conv",
|
||||
"full_attention",
|
||||
"conv",
|
||||
"full_attention",
|
||||
"conv"
|
||||
],
|
||||
"max_position_embeddings": 128000,
|
||||
"model_name": "SKIS-AI-Research/ODIN-C1",
|
||||
"model_type": "lfm2",
|
||||
"norm_eps": 1e-05,
|
||||
"num_attention_heads": 32,
|
||||
"num_heads": 32,
|
||||
"num_hidden_layers": 16,
|
||||
"num_key_value_heads": 8,
|
||||
"pad_token_id": 0,
|
||||
"rope_theta": 1000000.0,
|
||||
"tie_embedding": true,
|
||||
"unsloth_version": "2026.5.2",
|
||||
"use_cache": true,
|
||||
"use_pos_enc": true,
|
||||
"vocab_size": 65536
|
||||
}
|
||||
3
model.safetensors
Normal file
3
model.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c09d36f86612ebe1fbb6f29f4f3fa7d981c641358b8e165f2e8c2d25287a1db5
|
||||
size 2340697936
|
||||
23
special_tokens_map.json
Normal file
23
special_tokens_map.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"bos_token": {
|
||||
"content": "<|startoftext|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"eos_token": {
|
||||
"content": "<|im_end|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"pad_token": {
|
||||
"content": "<|pad|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
}
|
||||
}
|
||||
323817
tokenizer.json
Normal file
323817
tokenizer.json
Normal file
File diff suppressed because it is too large
Load Diff
4084
tokenizer_config.json
Normal file
4084
tokenizer_config.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user