初始化项目,由ModelHub XC社区提供模型
Model: Mungert/Olmo-3-7B-Think-GGUF Source: Original Platform
This commit is contained in:
73
.gitattributes
vendored
Normal file
73
.gitattributes
vendored
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 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
|
||||||
|
*.model filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.msgpack 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
|
||||||
|
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
saved_model/**/* 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
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.db* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ark* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
||||||
|
*.ggml filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.llamafile* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pt2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
||||||
|
Olmo-3-7B-Think-q2_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-iq2_xxs.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-iq2_m.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-iq3_m.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-iq4_nl.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-iq3_xxs.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-q4_1.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-q2_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-iq4_xs.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-iq3_xs.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-iq2_s.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-iq2_xs.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-q5_1.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-f16_q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
Olmo-3-7B-Think-q6_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
3
Olmo-3-7B-Think-bf16.gguf
Normal file
3
Olmo-3-7B-Think-bf16.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f7ec58f15df8bcf0e23af626562b72963fda298bb66ffc0d99889816ee1e493d
|
||||||
|
size 14600641408
|
||||||
3
Olmo-3-7B-Think-f16_q8_0.gguf
Normal file
3
Olmo-3-7B-Think-f16_q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2c0290fc43fc1dd6ce84ddb794bb25b8ab3182262414f92bac0cfe89f8aaa558
|
||||||
|
size 10888682368
|
||||||
3
Olmo-3-7B-Think-imatrix.gguf
Normal file
3
Olmo-3-7B-Think-imatrix.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:eefc2a460d8cd8f0f2a427fb518ba104a034a0ab8e04b7942be45cc83e4f4f6f
|
||||||
|
size 4589248
|
||||||
3
Olmo-3-7B-Think-iq2_m.gguf
Normal file
3
Olmo-3-7B-Think-iq2_m.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b6ca5747bf2610a182d64b25d696bb3b84b5761c5c9ca53a899c611f562f8424
|
||||||
|
size 2860761248
|
||||||
3
Olmo-3-7B-Think-iq2_s.gguf
Normal file
3
Olmo-3-7B-Think-iq2_s.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1b57f50ac18ee0a37d21a987f2e12415ec6df589c11ba92bff82e8d7c44ce529
|
||||||
|
size 2751709344
|
||||||
3
Olmo-3-7B-Think-iq2_xs.gguf
Normal file
3
Olmo-3-7B-Think-iq2_xs.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:75babe19ff2a6734740d743b6700224d920c5b88423e12b34357ef83b9066445
|
||||||
|
size 2667217056
|
||||||
3
Olmo-3-7B-Think-iq2_xxs.gguf
Normal file
3
Olmo-3-7B-Think-iq2_xxs.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:cecdc214f7bf0732c28f982ebf646b8c5dbcf28dbc4150edb0d243b0d67304e0
|
||||||
|
size 2482389152
|
||||||
3
Olmo-3-7B-Think-iq3_m.gguf
Normal file
3
Olmo-3-7B-Think-iq3_m.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:767797108cfabfee03e2bb9cb378c23744092a0e02b2ca21b8c4d4458c714117
|
||||||
|
size 3692365344
|
||||||
3
Olmo-3-7B-Think-iq3_xs.gguf
Normal file
3
Olmo-3-7B-Think-iq3_xs.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:94caba11daa6cfe10a916166a86235394b5450d3fb0d0450ca39a45fb6c00c9e
|
||||||
|
size 3360687648
|
||||||
3
Olmo-3-7B-Think-iq3_xxs.gguf
Normal file
3
Olmo-3-7B-Think-iq3_xxs.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:03cc971377041d6ea775faad7dac46d161280f286252b274320142b03cb2df83
|
||||||
|
size 3259762208
|
||||||
3
Olmo-3-7B-Think-iq4_nl.gguf
Normal file
3
Olmo-3-7B-Think-iq4_nl.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5dc2b1c85f4e02dc0030889063b086fdf28fce852c6b0b70aadc37528b7786cf
|
||||||
|
size 4110510240
|
||||||
3
Olmo-3-7B-Think-iq4_xs.gguf
Normal file
3
Olmo-3-7B-Think-iq4_xs.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d96fcbcf402e1487c3f81dc878c313919aaea2687cac68349d6dbf311ab52967
|
||||||
|
size 4119922208
|
||||||
3
Olmo-3-7B-Think-q2_k_m.gguf
Normal file
3
Olmo-3-7B-Think-q2_k_m.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:12b5473f3ecb00f7e2af6b59806a82542cba076166069d2d5c30a5626d5aea38
|
||||||
|
size 2932097184
|
||||||
3
Olmo-3-7B-Think-q2_k_s.gguf
Normal file
3
Olmo-3-7B-Think-q2_k_s.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:15f9e2bbfae6f982c77771c20f24ddead6379bd87265f9b7714c47f2d7c4bd10
|
||||||
|
size 2829412512
|
||||||
3
Olmo-3-7B-Think-q3_k_m.gguf
Normal file
3
Olmo-3-7B-Think-q3_k_m.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:59a4add17db7ee43625603e1d9db448fad61c4778803379ad017cdd981f642e9
|
||||||
|
size 3783853600
|
||||||
3
Olmo-3-7B-Think-q3_k_s.gguf
Normal file
3
Olmo-3-7B-Think-q3_k_s.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:aa6f126be2765a746d3045bd5b0ce180fbb74c2c274e388d593c04122f50a99f
|
||||||
|
size 3674751136
|
||||||
3
Olmo-3-7B-Think-q4_0.gguf
Normal file
3
Olmo-3-7B-Think-q4_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b3501c85084fb1bb6fc2b43d928b608853d9e90282d47e59593a4327a5d8c018
|
||||||
|
size 4521248928
|
||||||
3
Olmo-3-7B-Think-q4_1.gguf
Normal file
3
Olmo-3-7B-Think-q4_1.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2dd4c99d6e634453429653e8e4c2e96061a669fe3f0be4ac82f50f77da76e331
|
||||||
|
size 4617945248
|
||||||
3
Olmo-3-7B-Think-q4_k_m.gguf
Normal file
3
Olmo-3-7B-Think-q4_k_m.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:05f0420aa3716c9db39079e4ed6ddf839b7006245b850ecd7d7b1d6334704d94
|
||||||
|
size 4727490720
|
||||||
3
Olmo-3-7B-Think-q4_k_s.gguf
Normal file
3
Olmo-3-7B-Think-q4_k_s.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:63a2f9bf9f706bcc1399a70301cdfddae899260a21bac0c239b6760520d281a8
|
||||||
|
size 4400940576
|
||||||
3
Olmo-3-7B-Think-q5_0.gguf
Normal file
3
Olmo-3-7B-Think-q5_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f3ca8a3e952eef89be80b2c70ed0809ba895f9257a6e5789b1a14ffb551a6957
|
||||||
|
size 5330749600
|
||||||
3
Olmo-3-7B-Think-q5_1.gguf
Normal file
3
Olmo-3-7B-Think-q5_1.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:dd6e769caf1fb1cd8d14e947cc27927e852d41d8aa98ba7ed34be62d3b08e285
|
||||||
|
size 5735499936
|
||||||
3
Olmo-3-7B-Think-q5_k_m.gguf
Normal file
3
Olmo-3-7B-Think-q5_k_m.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:42f52a45a8af8cbcb11200e0b1fb2fc0d964f3cd0c5993b2c49487b329ab4f42
|
||||||
|
size 5480040608
|
||||||
3
Olmo-3-7B-Think-q6_k_m.gguf
Normal file
3
Olmo-3-7B-Think-q6_k_m.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e4809a018766d8cf957d88565b5d772f76ea801c3aeceb4485925dbd9d09e437
|
||||||
|
size 6190844064
|
||||||
3
Olmo-3-7B-Think-q8_0.gguf
Normal file
3
Olmo-3-7B-Think-q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:60ba9101e8a563a135253153828440dfc35bb5b761bc672f158424867398b933
|
||||||
|
size 7759251328
|
||||||
321
README.md
Normal file
321
README.md
Normal file
@@ -0,0 +1,321 @@
|
|||||||
|
---
|
||||||
|
license: apache-2.0
|
||||||
|
base_model: allenai/Olmo-3-7B-Think-DPO
|
||||||
|
language:
|
||||||
|
- en
|
||||||
|
library_name: transformers
|
||||||
|
---
|
||||||
|
|
||||||
|
# <span style="color: #7FFF7F;">Olmo-3-7B-Think GGUF Models</span>
|
||||||
|
|
||||||
|
|
||||||
|
## <span style="color: #7F7FFF;">Model Generation Details</span>
|
||||||
|
|
||||||
|
This model was generated using [llama.cpp](https://github.com/ggerganov/llama.cpp) at commit [`96ac5a232`](https://github.com/ggerganov/llama.cpp/commit/96ac5a2329029dfc35c9cbbb24c09fd91ae9416b).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## <span style="color: #7FFF7F;">Quantization Beyond the IMatrix</span>
|
||||||
|
|
||||||
|
I've been experimenting with a new quantization approach that selectively elevates the precision of key layers beyond what the default IMatrix configuration provides.
|
||||||
|
|
||||||
|
In my testing, standard IMatrix quantization underperforms at lower bit depths, especially with Mixture of Experts (MoE) models. To address this, I'm using the `--tensor-type` option in `llama.cpp` to manually "bump" important layers to higher precision. You can see the implementation here:
|
||||||
|
👉 [Layer bumping with llama.cpp](https://github.com/Mungert69/GGUFModelBuilder/blob/main/model-converter/tensor_list_builder.py)
|
||||||
|
|
||||||
|
While this does increase model file size, it significantly improves precision for a given quantization level.
|
||||||
|
|
||||||
|
### **I'd love your feedback—have you tried this? How does it perform for you?**
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<a href="https://readyforquantum.com/huggingface_gguf_selection_guide.html" style="color: #7FFF7F;">
|
||||||
|
Click here to get info on choosing the right GGUF model format
|
||||||
|
</a>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--Begin Original Model Card-->
|
||||||
|
|
||||||
|
|
||||||
|
## Model Details
|
||||||
|
<img alt="OLMo Logo" src="https://cdn-uploads.huggingface.co/production/uploads/65316953791d5a2611426c20/nC44-uxMD6J6H3OHxRtVU.png" width="242px" style="margin-left:'auto' margin-right:'auto' display:'block'">
|
||||||
|
|
||||||
|
|
||||||
|
# Model Card for Olmo 3 Think
|
||||||
|
|
||||||
|
We introduce Olmo 3, a new family of 7B and 32B models both Instruct and Think variants. Long chain-of-thought thinking improves reasoning tasks like math and coding.
|
||||||
|
|
||||||
|
Olmo is a series of **O**pen **l**anguage **mo**dels designed to enable the science of language models.
|
||||||
|
These models are pre-trained on the Dolma 3 dataset and post-trained on the Dolci datasets. We are releasing all code, checkpoints, logs (coming soon), and associated training details.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
The core models released in this batch include the following:
|
||||||
|
|
||||||
|
| **Stage** | **Olmo 3 7B Think** | **Olmo 3 32B Think** | **Olmo 3 7B Instruct** |
|
||||||
|
|--------------------------|-----------------------|------------------------|---------------------------|
|
||||||
|
| **Base Model** | [Olmo-3-7B](https://huggingface.co/allenai/Olmo-3-1025-7B) | [Olmo-3-32B](https://huggingface.co/allenai/Olmo-3-1125-32B) | [Olmo-3-7B](https://huggingface.co/allenai/Olmo-3-1025-7B) |
|
||||||
|
| **SFT** | [Olmo-3-7B-Think-SFT](https://huggingface.co/allenai/Olmo-3-7B-Think-SFT) | [Olmo-3-32B-Think-SFT](https://huggingface.co/allenai/Olmo-3-32B-Think-SFT) | [Olmo-3-7B-Instruct-SFT](https://huggingface.co/allenai/Olmo-3-7B-Instruct-SFT) |
|
||||||
|
| **DPO** | [Olmo-3-7B-Think-DPO](https://huggingface.co/allenai/Olmo-3-7B-Think-DPO) | [Olmo-3-32B-Think-DPO](https://huggingface.co/allenai/Olmo-3-32B-Think-DPO) | [Olmo-3-7B-Instruct-DPO](https://huggingface.co/allenai/Olmo-3-7B-Instruct-DPO) |
|
||||||
|
| **Final Models (RLVR)** | [Olmo-3-7B-Think](https://huggingface.co/allenai/Olmo-3-7B-Think) | [Olmo-3-32B-Think](https://huggingface.co/allenai/Olmo-3-32B-Think) | [Olmo-3-7B-Instruct](https://huggingface.co/allenai/Olmo-3-7B-Instruct) |
|
||||||
|
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Olmo 3 is supported in transformers 4.57.0 or higher:
|
||||||
|
```bash
|
||||||
|
pip install transformers>=4.57.0
|
||||||
|
```
|
||||||
|
|
||||||
|
## Inference
|
||||||
|
|
||||||
|
You can use OLMo with the standard HuggingFace transformers library:
|
||||||
|
```python
|
||||||
|
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||||
|
olmo = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-7B-Think")
|
||||||
|
tokenizer = AutoTokenizer.from_pretrained("allenai/Olmo-3-7B-Think")
|
||||||
|
message = ["Who would win in a fight - a dinosaur or a cow named Moo Moo?"]
|
||||||
|
inputs = tokenizer(message, return_tensors='pt', return_token_type_ids=False)
|
||||||
|
# optional verifying cuda
|
||||||
|
# inputs = {k: v.to('cuda') for k,v in inputs.items()}
|
||||||
|
# olmo = olmo.to('cuda')
|
||||||
|
response = olmo.generate(**inputs, max_new_tokens=100, do_sample=True, top_k=50, top_p=0.95)
|
||||||
|
print(tokenizer.batch_decode(response, skip_special_tokens=True)[0])
|
||||||
|
>> '<think>Okay, so the question is who would win in a fight...'
|
||||||
|
```
|
||||||
|
|
||||||
|
For faster performance, you can quantize the model using the following method:
|
||||||
|
```python
|
||||||
|
AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-7B-Think",
|
||||||
|
torch_dtype=torch.float16,
|
||||||
|
load_in_8bit=True) # Requires bitsandbytes
|
||||||
|
```
|
||||||
|
The quantized model is more sensitive to data types and CUDA operations. To avoid potential issues, it's recommended to pass the inputs directly to CUDA using:
|
||||||
|
```python
|
||||||
|
inputs.input_ids.to('cuda')
|
||||||
|
```
|
||||||
|
|
||||||
|
We have released checkpoints for these models. For post-training, the naming convention is `step_XXXX`.
|
||||||
|
|
||||||
|
|
||||||
|
To load a specific model revision with HuggingFace, simply add the argument `revision`:
|
||||||
|
```bash
|
||||||
|
olmo = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-7B-Think", revision="step_1375")
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, you can access all the revisions for the models via the following code snippet:
|
||||||
|
```python
|
||||||
|
from huggingface_hub import list_repo_refs
|
||||||
|
out = list_repo_refs("allenai/Olmo-3-7B-Think")
|
||||||
|
branches = [b.name for b in out.branches]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Chat template
|
||||||
|
|
||||||
|
## Default System Message
|
||||||
|
The default system prompt for this model is:
|
||||||
|
```
|
||||||
|
<|im_start|>system
|
||||||
|
You are Olmo, a helpful AI assistant built by Ai2. Your date cutoff is December 2024, and your model weights are available at https://huggingface.co/allenai.
|
||||||
|
<|im_end|>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Chat Format
|
||||||
|
|
||||||
|
The chat template for this model is formatted as:
|
||||||
|
```
|
||||||
|
<|im_start|>system
|
||||||
|
You are Olmo, a helpful AI assistant built by Ai2. Your date cutoff is December 2024, and your model weights are available at https://huggingface.co/allenai.
|
||||||
|
<|im_start|>user
|
||||||
|
Who would win in a fight - a dinosaur or a cow named Moo Moo?<|im_end|>
|
||||||
|
<|im_start|>assistant
|
||||||
|
<think>Okay, so the question is who would win in a fight between a dinosaur and a cow named Moo Moo.
|
||||||
|
Hmm, first I need to break this down. Let me think about the different factors involved here..... </think>
|
||||||
|
Moo Moo the cow would certinaly win.
|
||||||
|
<|endoftext|>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Model Description
|
||||||
|
|
||||||
|
- **Developed by:** Allen Institute for AI (Ai2)
|
||||||
|
- **Model type:** a Transformer style autoregressive language model.
|
||||||
|
- **Language(s) (NLP):** English
|
||||||
|
- **License:** This model is licensed under Apache 2.0. It is intended for research and educational use in accordance with Ai2's [Responsible Use Guidelines](https://allenai.org/responsible-use).
|
||||||
|
- **Contact:** Technical inquiries: `olmo@allenai.org`. Press: `press@allenai.org`
|
||||||
|
- **Date cutoff:** Dec. 2024.
|
||||||
|
|
||||||
|
|
||||||
|
### Model Sources
|
||||||
|
|
||||||
|
- **Project Page:** https://allenai.org/olmo
|
||||||
|
- **Repositories:**
|
||||||
|
- Open-Instruct for DPO and RLVR: https://github.com/allenai/open-instruct
|
||||||
|
- OLMo-Core for pre-training and SFT: https://github.com/allenai/OLMo-core
|
||||||
|
- OLMo-Eval for evaluation: https://github.com/allenai/OLMo-Eval
|
||||||
|
- **Paper:** [TBD]
|
||||||
|
<!-- - **Technical blog post:** (URL) -->
|
||||||
|
<!-- - **W&B Logs:** [SFT](()), [DPO](()), [RLVR](()) -->
|
||||||
|
|
||||||
|
|
||||||
|
## Evaluation
|
||||||
|
|
||||||
|
| Skill | Benchmark | Olmo 3 Think 7B SFT | Olmo 3 Think 7B DPO | Olmo 3 Think 7B | OpenThinker3-7B | Nemotron-Nano-9B-v2 | DeepSeek-R1-Distill-Qwen-7B | Qwen 3 8B (reasoning) | Qwen 3 VL 8B Thinker | OpenReasoning Nemotron 7B |
|
||||||
|
|-------|-----------|------------------|------------------|--------------|------------------|-----------------------|------------------------------|-------------------------|---------------------------|-----------------------------|
|
||||||
|
| **Math** | MATH | 94.4 | 92.4 | 95.1 | 94.5 | 94.4 | 87.9 | 95.1 | 95.2 | 94.6 |
|
||||||
|
| | AIME 2024 | 69.6 | 74.6 | 71.6 | 67.7 | 72.1 | 54.9 | 74.0 | 70.9 | 77.0 |
|
||||||
|
| | AIME 2025 | 57.6 | 62.7 | 64.6 | 57.2 | 58.9 | 40.2 | 67.8 | 61.5 | 73.1 |
|
||||||
|
| | OMEGA | 45.0 | 40.5 | 37.8 | 38.4 | 42.4 | 28.5 | 43.4 | 38.1 | 43.2 |
|
||||||
|
| **Reasoning** | BBH | 84.1 | 83.7 | 86.6 | 77.1 | 86.2 | 73.5 | 84.4 | 86.8 | 81.3 |
|
||||||
|
| | ZebraLogic | 57.9 | 60.6 | 66.5 | 34.9 | 60.8 | 26.1 | 85.2 | 91.2 | 22.4 |
|
||||||
|
| | AGI Eval | 77.2 | 79.1 | 81.5 | 78.6 | 83.1 | 69.5 | 87.0 | 90.1 | 81.4 |
|
||||||
|
| **Coding** | HumanEval+ | 88.2 | 91.4 | 89.9 | 87.4 | 89.7 | 83.0 | 80.2 | 83.7 | 89.7 |
|
||||||
|
| | MBPP+ | 63.2 | 63.0 | 64.7 | 61.4 | 66.1 | 63.5 | 69.1 | 63.0 | 61.2 |
|
||||||
|
| | LCB v3 | 67.8 | 75.1 | 75.2 | 68.0 | 83.4 | 58.8 | 86.2 | 85.5 | 82.3 |
|
||||||
|
| **IF** | IFEval | 77.9 | 75.9 | 88.2 | 51.7 | 86.0 | 59.6 | 87.4 | 85.5 | 42.5 |
|
||||||
|
| | IFBench | 30.0 | 28.3 | 41.6 | 23.0 | 34.6 | 16.7 | 37.1 | 40.4 | 23.4 |
|
||||||
|
| **Knowledge** | MMLU | 74.9 | 74.8 | 77.8 | 77.4 | 84.3 | 67.9 | 85.4 | 86.5 | 80.7 |
|
||||||
|
| **QA** | PopQA | 20.8 | 24.7 | 23.7 | 18.0 | 17.9 | 12.8 | 24.3 | 29.3 | 14.5 |
|
||||||
|
| | GPQA | 45.8 | 48.6 | 46.2 | 47.6 | 56.2 | 54.4 | 57.7 | 61.5 | 56.6 |
|
||||||
|
| **Chat** | AE 2 | 43.9 | 50.6 | 52.1 | 24.0 | 58.0 | 7.7 | 60.5 | 73.5 | 8.6 |
|
||||||
|
| **Safety** | | 65.8 | 67.7 | 70.7 | 31.3 | 72.1 | 54.0 | 68.3 | 82.9 | 30.3 |
|
||||||
|
|
||||||
|
## Model Details
|
||||||
|
|
||||||
|
#### Stage 1: SFT
|
||||||
|
- supervised fine-tuning on the Dolci-Think-SFT-7B dataset. This dataset consits of math, code, chat, and general knowledge queries.
|
||||||
|
- Datasets: [Dolci-Think-SFT-7B](https://huggingface.co/datasets/allenai/dolci-thinking-sft), [Dolci-Instruct-SFT-7B](https://huggingface.co/datasets/allenai/dolci-instruct-sft)
|
||||||
|
|
||||||
|
#### Stage 2:DPO
|
||||||
|
- direct preference optimization on the Dolci-Think-DPO-7B dataset. This dataset consits of math, code, chat, and general knowledge queries.
|
||||||
|
- Datasets: [Dolci-Think-DPO-7B](https://huggingface.co/datasets/allenai/dolci-thinking-dpo), [Dolci-Instruct-DPO-7B](https://huggingface.co/datasets/allenai/dolci-3-instruct-dpo-with-metadata)
|
||||||
|
|
||||||
|
#### Stage 3: RLVR
|
||||||
|
- reinforcement learning from verifiable rewards on the Dolci-Think-RL-7B dataset. This dataset consits of math, code, instruction-following, and general chat queries.
|
||||||
|
- Datasets: [Dolci-Think-RL-7B](https://huggingface.co/datasets/allenai/Dolci-Think-RL-7B), [Dolci-Instruct-RL-7B](https://huggingface.co/datasets/allenai/Dolci-Instruct-RL-7B)
|
||||||
|
|
||||||
|
## Inference & Recommended Settings
|
||||||
|
We evaluated our models on the following settings. We also recommend using them for generation:
|
||||||
|
- **temperature:** `0.6`
|
||||||
|
- **top_p:** `0.95`
|
||||||
|
- **max_tokens:** `32768`
|
||||||
|
|
||||||
|
### transformers Example
|
||||||
|
```python
|
||||||
|
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||||
|
|
||||||
|
model_id = "allenai/Olmo-3-7B-Think"
|
||||||
|
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
||||||
|
model = AutoModelForCausalLM.from_pretrained(
|
||||||
|
model_id,
|
||||||
|
device_map="auto",
|
||||||
|
)
|
||||||
|
|
||||||
|
prompt = "Who would win in a fight - a dinosaur or a cow named MooMoo?"
|
||||||
|
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
||||||
|
|
||||||
|
outputs = model.generate(
|
||||||
|
**inputs,
|
||||||
|
temperature=0.6,
|
||||||
|
top_p=0.95,
|
||||||
|
max_new_tokens=32768,
|
||||||
|
)
|
||||||
|
|
||||||
|
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
||||||
|
```
|
||||||
|
|
||||||
|
### vllm Example
|
||||||
|
```python
|
||||||
|
from vllm import LLM, SamplingParams
|
||||||
|
|
||||||
|
model_id = "allenai/Olmo-3-7B-Think"
|
||||||
|
llm = LLM(model=model_id)
|
||||||
|
|
||||||
|
sampling_params = SamplingParams(
|
||||||
|
temperature=0.6,
|
||||||
|
top_p=0.95,
|
||||||
|
max_tokens=32768,
|
||||||
|
)
|
||||||
|
|
||||||
|
prompt = "Who would win in a fight - a dinosaur or a cow named MooMoo?"
|
||||||
|
outputs = llm.generate(prompt, sampling_params)
|
||||||
|
print(outputs[0].outputs[0].text)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Bias, Risks, and Limitations
|
||||||
|
Like any base language model or fine-tuned model without safety filtering, these models can easily be prompted by users to generate harmful and sensitive content. Such content may also be produced unintentionally, especially in cases involving bias, so we recommend that users consider the risks when applying this technology. Additionally, many statements from OLMo or any LLM are often inaccurate, so facts should be verified.
|
||||||
|
|
||||||
|
|
||||||
|
## Citation
|
||||||
|
A technical manuscript is forthcoming!
|
||||||
|
|
||||||
|
## Model Card Contact
|
||||||
|
For errors in this model card, contact `olmo@allenai.org`.
|
||||||
|
|
||||||
|
<!--End Original Model Card-->
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# <span id="testllm" style="color: #7F7FFF;">🚀 If you find these models useful</span>
|
||||||
|
|
||||||
|
Help me test my **AI-Powered Quantum Network Monitor Assistant** with **quantum-ready security checks**:
|
||||||
|
|
||||||
|
👉 [Quantum Network Monitor](https://readyforquantum.com/?assistant=open&utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme)
|
||||||
|
|
||||||
|
|
||||||
|
The full Open Source Code for the Quantum Network Monitor Service available at my github repos ( repos with NetworkMonitor in the name) : [Source Code Quantum Network Monitor](https://github.com/Mungert69). You will also find the code I use to quantize the models if you want to do it yourself [GGUFModelBuilder](https://github.com/Mungert69/GGUFModelBuilder)
|
||||||
|
|
||||||
|
💬 **How to test**:
|
||||||
|
Choose an **AI assistant type**:
|
||||||
|
- `TurboLLM` (GPT-4.1-mini)
|
||||||
|
- `HugLLM` (Hugginface Open-source models)
|
||||||
|
- `TestLLM` (Experimental CPU-only)
|
||||||
|
|
||||||
|
### **What I’m Testing**
|
||||||
|
I’m pushing the limits of **small open-source models for AI network monitoring**, specifically:
|
||||||
|
- **Function calling** against live network services
|
||||||
|
- **How small can a model go** while still handling:
|
||||||
|
- Automated **Nmap security scans**
|
||||||
|
- **Quantum-readiness checks**
|
||||||
|
- **Network Monitoring tasks**
|
||||||
|
|
||||||
|
🟡 **TestLLM** – Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space):
|
||||||
|
- ✅ **Zero-configuration setup**
|
||||||
|
- ⏳ 30s load time (slow inference but **no API costs**) . No token limited as the cost is low.
|
||||||
|
- 🔧 **Help wanted!** If you’re into **edge-device AI**, let’s collaborate!
|
||||||
|
|
||||||
|
### **Other Assistants**
|
||||||
|
🟢 **TurboLLM** – Uses **gpt-4.1-mini** :
|
||||||
|
- **It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited.
|
||||||
|
- **Create custom cmd processors to run .net code on Quantum Network Monitor Agents**
|
||||||
|
- **Real-time network diagnostics and monitoring**
|
||||||
|
- **Security Audits**
|
||||||
|
- **Penetration testing** (Nmap/Metasploit)
|
||||||
|
|
||||||
|
🔵 **HugLLM** – Latest Open-source models:
|
||||||
|
- 🌐 Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita.
|
||||||
|
|
||||||
|
### 💡 **Example commands you could test**:
|
||||||
|
1. `"Give me info on my websites SSL certificate"`
|
||||||
|
2. `"Check if my server is using quantum safe encyption for communication"`
|
||||||
|
3. `"Run a comprehensive security audit on my server"`
|
||||||
|
4. '"Create a cmd processor to .. (what ever you want)" Note you need to install a [Quantum Network Monitor Agent](https://readyforquantum.com/Download/?utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme) to run the .net code on. This is a very flexible and powerful feature. Use with caution!
|
||||||
|
|
||||||
|
### Final Word
|
||||||
|
|
||||||
|
I fund the servers used to create these model files, run the Quantum Network Monitor service, and pay for inference from Novita and OpenAI—all out of my own pocket. All the code behind the model creation and the Quantum Network Monitor project is [open source](https://github.com/Mungert69). Feel free to use whatever you find helpful.
|
||||||
|
|
||||||
|
If you appreciate the work, please consider [buying me a coffee](https://www.buymeacoffee.com/mahadeva) ☕. Your support helps cover service costs and allows me to raise token limits for everyone.
|
||||||
|
|
||||||
|
I'm also open to job opportunities or sponsorship.
|
||||||
|
|
||||||
|
Thank you! 😊
|
||||||
1
configuration.json
Normal file
1
configuration.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"framework": "pytorch", "task": "others", "allow_remote": true}
|
||||||
Reference in New Issue
Block a user