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-1124-7b-instruct-q2_k.gguf +3 -0
- olmo-2-1124-7b-instruct-q3_k_l.gguf +3 -0
- olmo-2-1124-7b-instruct-q3_k_m.gguf +3 -0
- olmo-2-1124-7b-instruct-q3_k_s.gguf +3 -0
- olmo-2-1124-7b-instruct-q4_k_m.gguf +3 -0
- olmo-2-1124-7b-instruct-q4_k_s.gguf +3 -0
- olmo-2-1124-7b-instruct-q5_k_m.gguf +3 -0
- olmo-2-1124-7b-instruct-q5_k_s.gguf +3 -0
- olmo-2-1124-7b-instruct-q6_k.gguf +3 -0
- olmo-2-1124-7b-instruct-q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
olmo-2-1124-7b-instruct-q2_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
olmo-2-1124-7b-instruct-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
olmo-2-1124-7b-instruct-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
olmo-2-1124-7b-instruct-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
olmo-2-1124-7b-instruct-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
olmo-2-1124-7b-instruct-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
olmo-2-1124-7b-instruct-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
olmo-2-1124-7b-instruct-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
olmo-2-1124-7b-instruct-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
olmo-2-1124-7b-instruct-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
olmo-2-1124-7b-instruct-q2_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:628ba73d62bbecd851e5f189251a6ecf0e82a8d071069d4471c22ec70a175d65
|
| 3 |
+
size 2858261696
|
olmo-2-1124-7b-instruct-q3_k_l.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1edaac792378b7639873543f5870c6d9bbdf7fdf3c177da17eec6a5569c29ae0
|
| 3 |
+
size 3950943424
|
olmo-2-1124-7b-instruct-q3_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2088b05fb475d774dc1f20b7534824b9065df88a622f5d5bcb479f857e310743
|
| 3 |
+
size 3651837120
|
olmo-2-1124-7b-instruct-q3_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9699128a9a1d73a1fa6d322c21d4bebdd2f81e3ec6b593e6fb3e3bf8ddb3a23f
|
| 3 |
+
size 3302137024
|
olmo-2-1124-7b-instruct-q4_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7e000ba5716520c454a723d19b1d5a221e65173432e1dab38c8f3590c385409
|
| 3 |
+
size 4472020160
|
olmo-2-1124-7b-instruct-q4_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a7b9c39220fd30dba132eca920e69a510bb884809a1c659816aad05c37314f3
|
| 3 |
+
size 4247755968
|
olmo-2-1124-7b-instruct-q5_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e175ba59533c894c5318ea10033bbcce35d93d25fa8bd2a5be4fa3031c82bbc
|
| 3 |
+
size 5209169088
|
olmo-2-1124-7b-instruct-q5_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1574b21fe2f42d8ffee6caed4462e2a1dd1a7fc92cadc69981acd92606d94ca
|
| 3 |
+
size 5077703872
|
olmo-2-1124-7b-instruct-q6_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19413b3b3c97910363288e19e152554e41d49c62a60e02133e8197220b2301bb
|
| 3 |
+
size 5992389824
|
olmo-2-1124-7b-instruct-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da253290b9317f10bf4fa1ab3fadd2f20408c44340b5f2c26521c385a5b73cfd
|
| 3 |
+
size 7759895744
|