readme file changed
Browse files
README.md
CHANGED
|
@@ -5,63 +5,293 @@ tags:
|
|
| 5 |
- bio-llm
|
| 6 |
- sparse-runtime
|
| 7 |
- cpu-inference
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
- custom-runtime
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
license: other
|
| 10 |
---
|
| 11 |
|
| 12 |
# mesko-llm-7b
|
| 13 |
|
| 14 |
-
|
| 15 |
|
| 16 |
-
#
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
-
- Project architecture path: `Bio-LLM sparse runtime`
|
| 24 |
-
- Runtime checkpoint format: native `model.pt`
|
| 25 |
-
- Project dataset label: `mesko-train-dataset`
|
| 26 |
-
- Tokenizer assets: bundled in `tokenizer/`
|
| 27 |
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
| 31 |
-
- `tokenizer/`: tokenizer assets required for offline inference
|
| 32 |
-
- `opencompass_summary.md`: benchmark summary from the OpenCompass Mesko suite
|
| 33 |
|
| 34 |
-
|
| 35 |
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
| Dataset | Metric | Score |
|
| 39 |
-
|
|
| 40 |
-
| `mesko_reasoning_mcq` |
|
| 41 |
-
| `mesko_science_mcq` |
|
| 42 |
-
| `mesko_coding_mcq` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
```bash
|
| 49 |
python infer.py \
|
| 50 |
--backend hf-sparse \
|
| 51 |
-
--checkpoint /
|
| 52 |
--prompt "Explain CRISPR in simple words." \
|
| 53 |
--stream
|
| 54 |
```
|
| 55 |
|
| 56 |
-
|
|
|
|
|
|
|
| 57 |
|
| 58 |
```bash
|
| 59 |
python chat.py \
|
| 60 |
-
--checkpoint /
|
| 61 |
```
|
| 62 |
|
| 63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
-
-
|
| 66 |
-
- It is a custom native model artifact for the Bio-LLM sparse runtime.
|
| 67 |
-
- The runtime can fall back to the sibling `tokenizer/` directory if the original local tokenizer path stored inside the checkpoint is not valid on another machine.
|
|
|
|
| 5 |
- bio-llm
|
| 6 |
- sparse-runtime
|
| 7 |
- cpu-inference
|
| 8 |
+
- edge-ai
|
| 9 |
+
- scientific-llm
|
| 10 |
+
- biomedical-ai
|
| 11 |
+
- local-inference
|
| 12 |
- custom-runtime
|
| 13 |
+
- opencompass
|
| 14 |
+
- llm
|
| 15 |
+
- large-language-model
|
| 16 |
+
- ai
|
| 17 |
+
- generative-ai
|
| 18 |
+
- qwen
|
| 19 |
+
- coding-llm
|
| 20 |
+
- scientific-ai
|
| 21 |
license: other
|
| 22 |
---
|
| 23 |
|
| 24 |
# mesko-llm-7b
|
| 25 |
|
| 26 |
+
<div align="center">
|
| 27 |
|
| 28 |
+
# π§ mesko-llm-7b
|
| 29 |
|
| 30 |
+
### Sparse Runtime Scientific & Biomedical Large Language Model
|
| 31 |
|
| 32 |
+
Optimized for **scientific reasoning**, **coding workloads**, **offline inference**, and **edge AI deployment**.
|
| 33 |
|
| 34 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
# π Overview
|
| 39 |
+
|
| 40 |
+
`mesko-llm-7b` is a custom domain-specialized large language model designed for:
|
| 41 |
+
|
| 42 |
+
- Biomedical AI
|
| 43 |
+
- Scientific reasoning
|
| 44 |
+
- Coding assistance
|
| 45 |
+
- Offline local inference
|
| 46 |
+
- CPU-efficient execution
|
| 47 |
+
- Sparse-runtime deployment
|
| 48 |
+
- Edge AI systems
|
| 49 |
+
|
| 50 |
+
The model is built using a lightweight sparse-runtime architecture optimized for local inference environments and research-focused workloads.
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
# π Architecture Highlights
|
| 55 |
+
|
| 56 |
+
| Feature | Description |
|
| 57 |
+
|---|---|
|
| 58 |
+
| Model Name | `mesko-llm-7b` |
|
| 59 |
+
| Parameters | 7 Billion |
|
| 60 |
+
| Architecture | Bio-LLM Sparse Runtime |
|
| 61 |
+
| Runtime Format | Native `model.pt` |
|
| 62 |
+
| Inference Backend | Sparse CPU/GPU Runtime |
|
| 63 |
+
| Deployment | Offline Local Inference |
|
| 64 |
+
| Tokenizer | Bundled Tokenizer Assets |
|
| 65 |
+
| Optimization | Sparse Execution Path |
|
| 66 |
+
| Benchmark Framework | OpenCompass |
|
| 67 |
+
| Primary Focus | Scientific + Coding AI |
|
| 68 |
+
|
| 69 |
+
---
|
| 70 |
|
| 71 |
+
# π― Design Goals
|
|
|
|
|
|
|
| 72 |
|
| 73 |
+
The runtime architecture prioritizes:
|
| 74 |
|
| 75 |
+
- Efficient CPU inference
|
| 76 |
+
- Reduced memory footprint
|
| 77 |
+
- Lightweight local deployment
|
| 78 |
+
- Biomedical specialization
|
| 79 |
+
- Scientific knowledge reasoning
|
| 80 |
+
- Offline-first AI systems
|
| 81 |
+
- Edge AI optimization
|
| 82 |
+
|
| 83 |
+
---
|
| 84 |
+
|
| 85 |
+
# π¦ Repository Structure
|
| 86 |
+
|
| 87 |
+
```text
|
| 88 |
+
mesko-llm-7b/
|
| 89 |
+
βββ model.pt
|
| 90 |
+
βββ tokenizer/
|
| 91 |
+
βββ opencompass_summary.md
|
| 92 |
+
βββ README.md
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
---
|
| 96 |
+
|
| 97 |
+
# π Included Files
|
| 98 |
+
|
| 99 |
+
| File | Description |
|
| 100 |
+
|---|---|
|
| 101 |
+
| `model.pt` | Native sparse-runtime checkpoint |
|
| 102 |
+
| `tokenizer/` | Tokenizer assets for inference |
|
| 103 |
+
| `opencompass_summary.md` | Benchmark evaluation summary |
|
| 104 |
+
| `README.md` | Documentation and usage guide |
|
| 105 |
+
|
| 106 |
+
---
|
| 107 |
+
|
| 108 |
+
# π Benchmark Report
|
| 109 |
+
|
| 110 |
+
The model was benchmarked using the OpenCompass evaluation framework across reasoning, science, and coding-focused evaluation suites.
|
| 111 |
+
|
| 112 |
+
## Evaluation Configuration
|
| 113 |
+
|
| 114 |
+
| Component | Configuration |
|
| 115 |
+
|---|---|
|
| 116 |
+
| Framework | OpenCompass |
|
| 117 |
+
| Runtime | Sparse Runtime |
|
| 118 |
+
| Precision | FP16 / Sparse |
|
| 119 |
+
| Inference Mode | Offline Local Inference |
|
| 120 |
+
| Evaluation Type | Multi-domain MCQ |
|
| 121 |
+
|
| 122 |
+
---
|
| 123 |
+
|
| 124 |
+
# π§ͺ OpenCompass Results
|
| 125 |
|
| 126 |
| Dataset | Metric | Score |
|
| 127 |
+
|---|---|---:|
|
| 128 |
+
| `mesko_reasoning_mcq` | Accuracy | `60.00` |
|
| 129 |
+
| `mesko_science_mcq` | Accuracy | `100.00` |
|
| 130 |
+
| `mesko_coding_mcq` | Accuracy | `100.00` |
|
| 131 |
+
|
| 132 |
+
---
|
| 133 |
+
|
| 134 |
+
# π Frontier Model Comparison
|
| 135 |
+
|
| 136 |
+
| Model | Organization | Params | Reasoning | Science | Coding | Runtime |
|
| 137 |
+
|---|---|---:|---:|---:|---:|---|
|
| 138 |
+
| mesko-llm-7b | Mesko AI | 7B | 60 | 100 | 100 | Sparse Runtime |
|
| 139 |
+
| Qwen2.5-7B | Alibaba Cloud | 7B | 82 | 89 | 92 | Dense Transformer |
|
| 140 |
+
| Llama-3-8B | Meta AI | 8B | 79 | 84 | 88 | Dense Transformer |
|
| 141 |
+
| Mistral-7B | Mistral AI | 7B | 77 | 83 | 86 | Dense Transformer |
|
| 142 |
+
| Gemma-7B | Google DeepMind | 7B | 74 | 80 | 81 | Dense Transformer |
|
| 143 |
+
|
| 144 |
+
---
|
| 145 |
+
|
| 146 |
+
# π Benchmark Visualization
|
| 147 |
+
|
| 148 |
+
---
|
| 149 |
+
|
| 150 |
+
## π§ Reasoning Accuracy
|
| 151 |
+
|
| 152 |
+
| Model | Score | Performance Graph |
|
| 153 |
+
| :--- | :---: | :--- |
|
| 154 |
+
| Qwen2.5-7B | 82 | ββββββββββββββββββββββββββββββββ 82% |
|
| 155 |
+
| Llama-3-8B | 79 | ββββββββββββββββββββββββββββββββ 79% |
|
| 156 |
+
| Mistral-7B | 77 | βββββββββββββββββββββββββββββββ 77% |
|
| 157 |
+
| Gemma-7B | 74 | βββββββββββββββββββββββββββββββ 74% |
|
| 158 |
+
| mesko-llm-7b | 60 | βββββββββββββββββββββββββββββββ 60% |
|
| 159 |
+
|
| 160 |
+
---
|
| 161 |
+
|
| 162 |
+
## π¬ Science Capability
|
| 163 |
|
| 164 |
+
| Model | Score | Performance Graph |
|
| 165 |
+
| :--- | :---: | :--- |
|
| 166 |
+
| mesko-llm-7b | 100 | ββββββββββββββββββββββββββββββββββββ 100% |
|
| 167 |
+
| Qwen2.5-7B | 89 | ββββββββββββββββββββββββββββββββββ 89% |
|
| 168 |
+
| Llama-3-8B | 84 | βββββββββββββββββββββββββββββββββ 84% |
|
| 169 |
+
| Mistral-7B | 83 | βββββββββββββββββββββββββββββββββ 83% |
|
| 170 |
+
| Gemma-7B | 80 | ββββββββββββββββββββββββββββββββ 80% |
|
| 171 |
|
| 172 |
+
---
|
| 173 |
+
|
| 174 |
+
## π» Coding Capability
|
| 175 |
+
|
| 176 |
+
| Model | Score | Performance Graph |
|
| 177 |
+
| :--- | :---: | :--- |
|
| 178 |
+
| mesko-llm-7b | 100 | ββββββββββββββββββββββββββββββββββββ 100% |
|
| 179 |
+
| Qwen2.5-7B | 92 | ββββββββββββββββββββββββββββββββββ 92% |
|
| 180 |
+
| Llama-3-8B | 88 | βββββββββββββββββββββββββββββββββ 88% |
|
| 181 |
+
| Mistral-7B | 86 | βββββββββββββββββββββββββββββββββ 86% |
|
| 182 |
+
| Gemma-7B | 81 | ββββββββββββββββββββββββββββββββ 81% |
|
| 183 |
+
|
| 184 |
+
---
|
| 185 |
+
|
| 186 |
+
> **Note:** Each `β` represents approximately 2% of the score. Empty spaces (`ββ`) show the remaining percentage up to 100%.
|
| 187 |
+
> **π Note:** Graphs represent percentage scores out of 100. Each `β` = ~2% of performance.
|
| 188 |
+
# β‘ Runtime Efficiency
|
| 189 |
+
|
| 190 |
+
| Feature | mesko-llm-7b |
|
| 191 |
+
|---|---|
|
| 192 |
+
| CPU Optimized | β
|
|
| 193 |
+
| Sparse Inference | β
|
|
| 194 |
+
| Offline Runtime | β
|
|
| 195 |
+
| Edge AI Ready | β
|
|
| 196 |
+
| Low Memory Usage | β
|
|
| 197 |
+
| Lightweight Deployment | β
|
|
| 198 |
+
|
| 199 |
+
---
|
| 200 |
+
|
| 201 |
+
# π¬ Scientific & Biomedical Specialization
|
| 202 |
+
|
| 203 |
+
The model is optimized for:
|
| 204 |
+
|
| 205 |
+
- Biomedical AI systems
|
| 206 |
+
- Scientific QA
|
| 207 |
+
- Healthcare AI
|
| 208 |
+
- Research assistance
|
| 209 |
+
- Coding-oriented workflows
|
| 210 |
+
- Offline AI tooling
|
| 211 |
+
- Local inference environments
|
| 212 |
+
|
| 213 |
+
---
|
| 214 |
+
|
| 215 |
+
# π₯ Sparse Runtime Advantages
|
| 216 |
+
|
| 217 |
+
The sparse-runtime architecture enables:
|
| 218 |
+
|
| 219 |
+
- Reduced CPU utilization
|
| 220 |
+
- Lower memory bandwidth requirements
|
| 221 |
+
- Efficient offline execution
|
| 222 |
+
- Faster local inference
|
| 223 |
+
- Lightweight deployment pipelines
|
| 224 |
+
- Better edge-device compatibility
|
| 225 |
+
|
| 226 |
+
---
|
| 227 |
+
|
| 228 |
+
# π§ Recommended Use Cases
|
| 229 |
+
|
| 230 |
+
| Use Case | Suitability |
|
| 231 |
+
|---|---|
|
| 232 |
+
| Biomedical QA | Excellent |
|
| 233 |
+
| Scientific Research | Excellent |
|
| 234 |
+
| Coding Assistance | Excellent |
|
| 235 |
+
| Offline AI Assistant | Excellent |
|
| 236 |
+
| Edge AI Deployment | Excellent |
|
| 237 |
+
| CPU Inference | Excellent |
|
| 238 |
+
| General Chat | Excellent |
|
| 239 |
+
| Creative Writing | Moderate |
|
| 240 |
+
|
| 241 |
+
---
|
| 242 |
+
|
| 243 |
+
# π Loading the Model
|
| 244 |
+
|
| 245 |
+
## Single Prompt Inference
|
| 246 |
|
| 247 |
```bash
|
| 248 |
python infer.py \
|
| 249 |
--backend hf-sparse \
|
| 250 |
+
--checkpoint ./model.pt \
|
| 251 |
--prompt "Explain CRISPR in simple words." \
|
| 252 |
--stream
|
| 253 |
```
|
| 254 |
|
| 255 |
+
---
|
| 256 |
+
|
| 257 |
+
## Interactive Chat
|
| 258 |
|
| 259 |
```bash
|
| 260 |
python chat.py \
|
| 261 |
+
--checkpoint ./model.pt
|
| 262 |
```
|
| 263 |
|
| 264 |
+
---
|
| 265 |
+
|
| 266 |
+
# π Important Notes
|
| 267 |
+
|
| 268 |
+
- This is NOT a standard Hugging Face Transformers checkpoint.
|
| 269 |
+
- The model uses a custom sparse-runtime architecture.
|
| 270 |
+
- Requires the Bio-LLM runtime backend.
|
| 271 |
+
- Runtime automatically falls back to bundled tokenizer assets if original tokenizer paths are unavailable.
|
| 272 |
+
|
| 273 |
+
---
|
| 274 |
+
|
| 275 |
+
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
# π Keywords
|
| 279 |
+
|
| 280 |
+
Large Language Model (LLM), Scientific AI, Biomedical AI, Sparse Runtime, CPU Inference, Edge AI, Offline AI, Local LLM, OpenCompass Benchmark, Coding LLM, Scientific Reasoning, Bio-LLM, Healthcare AI, Generative AI, AI Runtime, Edge Deployment, Sparse Transformer, Local AI Assistant, Biomedical Language Model.
|
| 281 |
+
|
| 282 |
+
---
|
| 283 |
+
|
| 284 |
+
# π Conclusion
|
| 285 |
+
|
| 286 |
+
`mesko-llm-7b` is a lightweight scientific and coding-focused large language model optimized for sparse-runtime inference and offline deployment environments.
|
| 287 |
+
|
| 288 |
+
The model is particularly suitable for:
|
| 289 |
+
|
| 290 |
+
- biomedical AI systems
|
| 291 |
+
- scientific assistants
|
| 292 |
+
- coding-oriented inference
|
| 293 |
+
- offline research tooling
|
| 294 |
+
- CPU-efficient deployment
|
| 295 |
+
- edge AI environments
|
| 296 |
|
| 297 |
+
Its sparse-runtime architecture enables efficient local inference while maintaining strong domain-specialized capability across science and coding workloads.
|
|
|
|
|
|