初始化项目,由ModelHub XC社区提供模型
Model: LiquidAI/LFM2-350M-GGUF Source: Original Platform
This commit is contained in:
43
.gitattributes
vendored
Normal file
43
.gitattributes
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
*.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
|
||||||
|
|
||||||
|
*.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-350M-F16.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
LFM2-350M-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
LFM2-350M-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
LFM2-350M-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
LFM2-350M-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
LFM2-350M-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
||||||
|
LFM2-350M-Q4_K_M-hip-optimized.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
3
LFM2-350M-F16.gguf
Normal file
3
LFM2-350M-F16.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:379ffdcbf08147c0313f6f1ce7ff558a2bc935eda633f4b46c52347032419c42
|
||||||
|
size 711482304
|
||||||
3
LFM2-350M-Q4_0.gguf
Normal file
3
LFM2-350M-Q4_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8e3ebc1c608dc8683adf8c3b3e6a40e2f4eab22aa33b908bff2ac03a1c16d796
|
||||||
|
size 219306944
|
||||||
3
LFM2-350M-Q4_K_M-hip-optimized.gguf
Normal file
3
LFM2-350M-Q4_K_M-hip-optimized.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:78ed4f5583424adfb1bad52332ea19f18307f87188defb4c222ab7ed329c3cc6
|
||||||
|
size 254958528
|
||||||
3
LFM2-350M-Q4_K_M.gguf
Normal file
3
LFM2-350M-Q4_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a4d000c7064bd3b2e42c6845836286a899a4e79cf1791da1a6797b58d575957d
|
||||||
|
size 229309376
|
||||||
3
LFM2-350M-Q5_K_M.gguf
Normal file
3
LFM2-350M-Q5_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:722fa02312490ed221348b98d9782644f412e8c5bb71e0df69eacdacec29c785
|
||||||
|
size 260373440
|
||||||
3
LFM2-350M-Q6_K.gguf
Normal file
3
LFM2-350M-Q6_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:877271ee22b484911ed89e7f598a457525076f53e6f2a05cab57a0cd4f29688a
|
||||||
|
size 293379008
|
||||||
3
LFM2-350M-Q8_0.gguf
Normal file
3
LFM2-350M-Q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b7bfeab6495a1ae3ae78811c1297df9f301b35261ff9580d42fb30dc4dc9034b
|
||||||
|
size 379214784
|
||||||
3
LICENSE
Normal file
3
LICENSE
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5188f2b355da20647257a3156db5834c794e5fb5e6d8dc4d4cdbb3180e75b85b
|
||||||
|
size 10596
|
||||||
58
README.md
Normal file
58
README.md
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
---
|
||||||
|
license: other
|
||||||
|
license_name: lfm1.0
|
||||||
|
license_link: LICENSE
|
||||||
|
language:
|
||||||
|
- en
|
||||||
|
- ar
|
||||||
|
- zh
|
||||||
|
- fr
|
||||||
|
- de
|
||||||
|
- ja
|
||||||
|
- ko
|
||||||
|
- es
|
||||||
|
pipeline_tag: text-generation
|
||||||
|
tags:
|
||||||
|
- liquid
|
||||||
|
- lfm2
|
||||||
|
- edge
|
||||||
|
- llama.cpp
|
||||||
|
- gguf
|
||||||
|
base_model:
|
||||||
|
- LiquidAI/LFM2-350M
|
||||||
|
new_version: LiquidAI/LFM2.5-350M-GGUF
|
||||||
|
---
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<div style="text-align: center;">
|
||||||
|
<img
|
||||||
|
src="https://cdn-uploads.huggingface.co/production/uploads/61b8e2ba285851687028d395/2b08LKpev0DNEk6DlnWkY.png"
|
||||||
|
alt="Liquid AI"
|
||||||
|
style="width: 100%; max-width: 100%; height: auto; display: inline-block; margin-bottom: 0.5em; margin-top: 0.5em;"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; justify-content: center; gap: 0.5em;">
|
||||||
|
<a href="https://playground.liquid.ai/"><strong>Try LFM</strong></a> • <a href="https://docs.liquid.ai/lfm/getting-started/welcome"><strong>Docs</strong></a> • <a href="https://leap.liquid.ai/"><strong>LEAP</strong></a> • <a href="https://discord.com/invite/liquid-ai"><strong>Discord</strong></a>
|
||||||
|
</div>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
# LFM2-350M-GGUF
|
||||||
|
|
||||||
|
LFM2 is a new generation of hybrid models developed by [Liquid AI](https://www.liquid.ai/), specifically designed for edge AI and on-device deployment. It sets a new standard in terms of quality, speed, and memory efficiency.
|
||||||
|
|
||||||
|
Find more details in the original model card: https://huggingface.co/LiquidAI/LFM2-350M
|
||||||
|
|
||||||
|
## 🏃 How to run LFM2
|
||||||
|
|
||||||
|
Example usage with [llama.cpp](https://github.com/ggml-org/llama.cpp):
|
||||||
|
|
||||||
|
```
|
||||||
|
llama-cli -hf LiquidAI/LFM2-350M-GGUF
|
||||||
|
```
|
||||||
|
|
||||||
|
## 📬 Contact
|
||||||
|
|
||||||
|
- Got questions or want to connect? [Join our Discord community](https://discord.com/invite/liquid-ai)
|
||||||
|
- If you are interested in custom solutions with edge deployment, please contact [our sales team](https://www.liquid.ai/contact).
|
||||||
1
configuration.json
Normal file
1
configuration.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}
|
||||||
15
leap/Q4_0.json
Normal file
15
leap/Q4_0.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"inference_type": "llama.cpp/text-to-text",
|
||||||
|
"schema_version": "1.0.0",
|
||||||
|
"load_time_parameters": {
|
||||||
|
"model": "../LFM2-350M-Q4_0.gguf",
|
||||||
|
"chat_template": "{{- bos_token -}}\n{%- set system_prompt = \"\" -%}\n{%- set ns = namespace(system_prompt=\"\") -%}\n{%- if messages[0][\"role\"] == \"system\" -%}\n\t{%- set ns.system_prompt = messages[0][\"content\"] -%}\n\t{%- set messages = messages[1:] -%}\n{%- endif -%}\n{%- if tools -%}\n\t{%- set ns.system_prompt = ns.system_prompt + (\"\\n\" if ns.system_prompt else \"\") + \"List of tools: <|tool_list_start|>[\" -%}\n\t{%- for tool in tools -%}\n\t\t{%- if tool is not string -%}\n\t\t\t{%- set tool = tool | tojson -%}\n\t\t{%- endif -%}\n\t\t{%- set ns.system_prompt = ns.system_prompt + tool -%}\n\t\t{%- if not loop.last -%}\n\t\t\t{%- set ns.system_prompt = ns.system_prompt + \", \" -%}\n\t\t{%- endif -%}\n\t{%- endfor -%}\n\t{%- set ns.system_prompt = ns.system_prompt + \"]<|tool_list_end|>\" -%}\n{%- endif -%}\n{%- if ns.system_prompt -%}\n\t{{- \"<|im_start|>system\\n\" + ns.system_prompt + \"<|im_end|>\\n\" -}}\n{%- endif -%}\n{%- for message in messages -%}\n\t{{- \"<|im_start|>\" + message[\"role\"] + \"\\n\" -}}\n\t{%- set content = message[\"content\"] -%}\n\t{%- if content is not string -%}\n\t\t{%- set content = content | tojson -%}\n\t{%- endif -%}\n\t{%- if message[\"role\"] == \"tool\" -%}\n\t\t{%- set content = \"<|tool_response_start|>\" + content + \"<|tool_response_end|>\" -%}\n\t{%- endif -%}\n\t{{- content + \"<|im_end|>\\n\" -}}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n\t{{- \"<|im_start|>assistant\\n\" -}}\n{%- endif -%}\n"
|
||||||
|
},
|
||||||
|
"generation_time_parameters": {
|
||||||
|
"sampling_parameters": {
|
||||||
|
"temperature": 0.3,
|
||||||
|
"min_p": 0.15,
|
||||||
|
"repetition_penalty": 1.05
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
15
leap/Q4_K_M.json
Normal file
15
leap/Q4_K_M.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"inference_type": "llama.cpp/text-to-text",
|
||||||
|
"schema_version": "1.0.0",
|
||||||
|
"load_time_parameters": {
|
||||||
|
"model": "../LFM2-350M-Q4_K_M.gguf",
|
||||||
|
"chat_template": "{{- bos_token -}}\n{%- set system_prompt = \"\" -%}\n{%- set ns = namespace(system_prompt=\"\") -%}\n{%- if messages[0][\"role\"] == \"system\" -%}\n\t{%- set ns.system_prompt = messages[0][\"content\"] -%}\n\t{%- set messages = messages[1:] -%}\n{%- endif -%}\n{%- if tools -%}\n\t{%- set ns.system_prompt = ns.system_prompt + (\"\\n\" if ns.system_prompt else \"\") + \"List of tools: <|tool_list_start|>[\" -%}\n\t{%- for tool in tools -%}\n\t\t{%- if tool is not string -%}\n\t\t\t{%- set tool = tool | tojson -%}\n\t\t{%- endif -%}\n\t\t{%- set ns.system_prompt = ns.system_prompt + tool -%}\n\t\t{%- if not loop.last -%}\n\t\t\t{%- set ns.system_prompt = ns.system_prompt + \", \" -%}\n\t\t{%- endif -%}\n\t{%- endfor -%}\n\t{%- set ns.system_prompt = ns.system_prompt + \"]<|tool_list_end|>\" -%}\n{%- endif -%}\n{%- if ns.system_prompt -%}\n\t{{- \"<|im_start|>system\\n\" + ns.system_prompt + \"<|im_end|>\\n\" -}}\n{%- endif -%}\n{%- for message in messages -%}\n\t{{- \"<|im_start|>\" + message[\"role\"] + \"\\n\" -}}\n\t{%- set content = message[\"content\"] -%}\n\t{%- if content is not string -%}\n\t\t{%- set content = content | tojson -%}\n\t{%- endif -%}\n\t{%- if message[\"role\"] == \"tool\" -%}\n\t\t{%- set content = \"<|tool_response_start|>\" + content + \"<|tool_response_end|>\" -%}\n\t{%- endif -%}\n\t{{- content + \"<|im_end|>\\n\" -}}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n\t{{- \"<|im_start|>assistant\\n\" -}}\n{%- endif -%}\n"
|
||||||
|
},
|
||||||
|
"generation_time_parameters": {
|
||||||
|
"sampling_parameters": {
|
||||||
|
"temperature": 0.3,
|
||||||
|
"min_p": 0.15,
|
||||||
|
"repetition_penalty": 1.05
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
15
leap/Q5_K_M.json
Normal file
15
leap/Q5_K_M.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"inference_type": "llama.cpp/text-to-text",
|
||||||
|
"schema_version": "1.0.0",
|
||||||
|
"load_time_parameters": {
|
||||||
|
"model": "../LFM2-350M-Q5_K_M.gguf",
|
||||||
|
"chat_template": "{{- bos_token -}}\n{%- set system_prompt = \"\" -%}\n{%- set ns = namespace(system_prompt=\"\") -%}\n{%- if messages[0][\"role\"] == \"system\" -%}\n\t{%- set ns.system_prompt = messages[0][\"content\"] -%}\n\t{%- set messages = messages[1:] -%}\n{%- endif -%}\n{%- if tools -%}\n\t{%- set ns.system_prompt = ns.system_prompt + (\"\\n\" if ns.system_prompt else \"\") + \"List of tools: <|tool_list_start|>[\" -%}\n\t{%- for tool in tools -%}\n\t\t{%- if tool is not string -%}\n\t\t\t{%- set tool = tool | tojson -%}\n\t\t{%- endif -%}\n\t\t{%- set ns.system_prompt = ns.system_prompt + tool -%}\n\t\t{%- if not loop.last -%}\n\t\t\t{%- set ns.system_prompt = ns.system_prompt + \", \" -%}\n\t\t{%- endif -%}\n\t{%- endfor -%}\n\t{%- set ns.system_prompt = ns.system_prompt + \"]<|tool_list_end|>\" -%}\n{%- endif -%}\n{%- if ns.system_prompt -%}\n\t{{- \"<|im_start|>system\\n\" + ns.system_prompt + \"<|im_end|>\\n\" -}}\n{%- endif -%}\n{%- for message in messages -%}\n\t{{- \"<|im_start|>\" + message[\"role\"] + \"\\n\" -}}\n\t{%- set content = message[\"content\"] -%}\n\t{%- if content is not string -%}\n\t\t{%- set content = content | tojson -%}\n\t{%- endif -%}\n\t{%- if message[\"role\"] == \"tool\" -%}\n\t\t{%- set content = \"<|tool_response_start|>\" + content + \"<|tool_response_end|>\" -%}\n\t{%- endif -%}\n\t{{- content + \"<|im_end|>\\n\" -}}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n\t{{- \"<|im_start|>assistant\\n\" -}}\n{%- endif -%}\n"
|
||||||
|
},
|
||||||
|
"generation_time_parameters": {
|
||||||
|
"sampling_parameters": {
|
||||||
|
"temperature": 0.3,
|
||||||
|
"min_p": 0.15,
|
||||||
|
"repetition_penalty": 1.05
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
15
leap/Q8_0.json
Normal file
15
leap/Q8_0.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"inference_type": "llama.cpp/text-to-text",
|
||||||
|
"schema_version": "1.0.0",
|
||||||
|
"load_time_parameters": {
|
||||||
|
"model": "../LFM2-350M-Q8_0.gguf",
|
||||||
|
"chat_template": "{{- bos_token -}}\n{%- set system_prompt = \"\" -%}\n{%- set ns = namespace(system_prompt=\"\") -%}\n{%- if messages[0][\"role\"] == \"system\" -%}\n\t{%- set ns.system_prompt = messages[0][\"content\"] -%}\n\t{%- set messages = messages[1:] -%}\n{%- endif -%}\n{%- if tools -%}\n\t{%- set ns.system_prompt = ns.system_prompt + (\"\\n\" if ns.system_prompt else \"\") + \"List of tools: <|tool_list_start|>[\" -%}\n\t{%- for tool in tools -%}\n\t\t{%- if tool is not string -%}\n\t\t\t{%- set tool = tool | tojson -%}\n\t\t{%- endif -%}\n\t\t{%- set ns.system_prompt = ns.system_prompt + tool -%}\n\t\t{%- if not loop.last -%}\n\t\t\t{%- set ns.system_prompt = ns.system_prompt + \", \" -%}\n\t\t{%- endif -%}\n\t{%- endfor -%}\n\t{%- set ns.system_prompt = ns.system_prompt + \"]<|tool_list_end|>\" -%}\n{%- endif -%}\n{%- if ns.system_prompt -%}\n\t{{- \"<|im_start|>system\\n\" + ns.system_prompt + \"<|im_end|>\\n\" -}}\n{%- endif -%}\n{%- for message in messages -%}\n\t{{- \"<|im_start|>\" + message[\"role\"] + \"\\n\" -}}\n\t{%- set content = message[\"content\"] -%}\n\t{%- if content is not string -%}\n\t\t{%- set content = content | tojson -%}\n\t{%- endif -%}\n\t{%- if message[\"role\"] == \"tool\" -%}\n\t\t{%- set content = \"<|tool_response_start|>\" + content + \"<|tool_response_end|>\" -%}\n\t{%- endif -%}\n\t{{- content + \"<|im_end|>\\n\" -}}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n\t{{- \"<|im_start|>assistant\\n\" -}}\n{%- endif -%}\n"
|
||||||
|
},
|
||||||
|
"generation_time_parameters": {
|
||||||
|
"sampling_parameters": {
|
||||||
|
"temperature": 0.3,
|
||||||
|
"min_p": 0.15,
|
||||||
|
"repetition_penalty": 1.05
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user