Instructions to use cortexso/olmo-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use cortexso/olmo-2 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="cortexso/olmo-2", filename="olmo-2-0325-32b-instruct-q2_k.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use cortexso/olmo-2 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cortexso/olmo-2:Q4_K_M # Run inference directly in the terminal: llama-cli -hf cortexso/olmo-2:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cortexso/olmo-2:Q4_K_M # Run inference directly in the terminal: llama-cli -hf cortexso/olmo-2:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf cortexso/olmo-2:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf cortexso/olmo-2:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf cortexso/olmo-2:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf cortexso/olmo-2:Q4_K_M
Use Docker
docker model run hf.co/cortexso/olmo-2:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use cortexso/olmo-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cortexso/olmo-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cortexso/olmo-2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cortexso/olmo-2:Q4_K_M
- Ollama
How to use cortexso/olmo-2 with Ollama:
ollama run hf.co/cortexso/olmo-2:Q4_K_M
- Unsloth Studio new
How to use cortexso/olmo-2 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for cortexso/olmo-2 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for cortexso/olmo-2 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for cortexso/olmo-2 to start chatting
- Docker Model Runner
How to use cortexso/olmo-2 with Docker Model Runner:
docker model run hf.co/cortexso/olmo-2:Q4_K_M
- Lemonade
How to use cortexso/olmo-2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cortexso/olmo-2:Q4_K_M
Run and chat with the model
lemonade run user.olmo-2-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +10 -0
- olmo-2-0325-32b-instruct-q2_k.gguf +3 -0
- olmo-2-0325-32b-instruct-q3_k_l.gguf +3 -0
- olmo-2-0325-32b-instruct-q3_k_m.gguf +3 -0
- olmo-2-0325-32b-instruct-q3_k_s.gguf +3 -0
- olmo-2-0325-32b-instruct-q4_k_m.gguf +3 -0
- olmo-2-0325-32b-instruct-q4_k_s.gguf +3 -0
- olmo-2-0325-32b-instruct-q5_k_m.gguf +3 -0
- olmo-2-0325-32b-instruct-q5_k_s.gguf +3 -0
- olmo-2-0325-32b-instruct-q6_k.gguf +3 -0
- olmo-2-0325-32b-instruct-q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -53,3 +53,13 @@ olmo-2-1124-13b-instruct-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 53 |
olmo-2-1124-13b-instruct-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 54 |
olmo-2-1124-13b-instruct-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 55 |
olmo-2-1124-13b-instruct-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
olmo-2-1124-13b-instruct-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 54 |
olmo-2-1124-13b-instruct-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 55 |
olmo-2-1124-13b-instruct-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
olmo-2-0325-32b-instruct-q2_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
olmo-2-0325-32b-instruct-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
olmo-2-0325-32b-instruct-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
olmo-2-0325-32b-instruct-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
olmo-2-0325-32b-instruct-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
olmo-2-0325-32b-instruct-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
olmo-2-0325-32b-instruct-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
olmo-2-0325-32b-instruct-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
olmo-2-0325-32b-instruct-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
olmo-2-0325-32b-instruct-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
olmo-2-0325-32b-instruct-q2_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c09ffcf737c5258b6a9b11358bc6c6e483cfb01416851ed9db81396f21416a8
|
| 3 |
+
size 12006375456
|
olmo-2-0325-32b-instruct-q3_k_l.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd826595f142dcd928cb75bb3f6c40eef213b115ebd7b18e87b418deba6d4e49
|
| 3 |
+
size 16913465376
|
olmo-2-0325-32b-instruct-q3_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d4bbc3822c7608e0116fdfa0ce083a26c1a6ef4a3215ca3d7682ad45856e923
|
| 3 |
+
size 15601434656
|
olmo-2-0325-32b-instruct-q3_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6e4e35010c1e1e3fd26b7b495d36165409ee05ef2caea266b6ec240787959f8
|
| 3 |
+
size 14058717216
|
olmo-2-0325-32b-instruct-q4_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fe044faf910172b397e538edf3219cdb2e2befcee50a0edd2dadb821e57c2dc
|
| 3 |
+
size 19482558496
|
olmo-2-0325-32b-instruct-q4_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:574b6fd5a5a544ef2c06b4f4a949244416eb85750767462be7827d25c7241d35
|
| 3 |
+
size 18415632416
|
olmo-2-0325-32b-instruct-q5_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4e840cd16a11ebe53dd806f77a2864b5866b3768814d8c4edfee2dbd83b6f00
|
| 3 |
+
size 22860283936
|
olmo-2-0325-32b-instruct-q5_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2dcc48734fd1012c62f12ad7a5f025abcbc54a4da9f771ea996225b644ff8cc9
|
| 3 |
+
size 22236381216
|
olmo-2-0325-32b-instruct-q6_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:689664e2e491bb2f3f7d5233e07cc099590f20323e34e96a1cf070c7eb3da1ab
|
| 3 |
+
size 26449117216
|
olmo-2-0325-32b-instruct-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc2c16f73fd4b50f6e7bcefc651dfcc5f464f2c5620b425087649c6d90b0cf6a
|
| 3 |
+
size 34255601696
|