Instructions to use cortexso/marco-o1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use cortexso/marco-o1 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="cortexso/marco-o1", filename="marco-o1-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/marco-o1 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cortexso/marco-o1:Q4_K_M # Run inference directly in the terminal: llama-cli -hf cortexso/marco-o1: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/marco-o1:Q4_K_M # Run inference directly in the terminal: llama-cli -hf cortexso/marco-o1: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/marco-o1:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf cortexso/marco-o1: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/marco-o1:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf cortexso/marco-o1:Q4_K_M
Use Docker
docker model run hf.co/cortexso/marco-o1:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use cortexso/marco-o1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cortexso/marco-o1" # 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/marco-o1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cortexso/marco-o1:Q4_K_M
- Ollama
How to use cortexso/marco-o1 with Ollama:
ollama run hf.co/cortexso/marco-o1:Q4_K_M
- Unsloth Studio new
How to use cortexso/marco-o1 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/marco-o1 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/marco-o1 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for cortexso/marco-o1 to start chatting
- Docker Model Runner
How to use cortexso/marco-o1 with Docker Model Runner:
docker model run hf.co/cortexso/marco-o1:Q4_K_M
- Lemonade
How to use cortexso/marco-o1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cortexso/marco-o1:Q4_K_M
Run and chat with the model
lemonade run user.marco-o1-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +10 -0
- marco-o1-q2_k.gguf +3 -0
- marco-o1-q3_k_l.gguf +3 -0
- marco-o1-q3_k_m.gguf +3 -0
- marco-o1-q3_k_s.gguf +3 -0
- marco-o1-q4_k_m.gguf +3 -0
- marco-o1-q4_k_s.gguf +3 -0
- marco-o1-q5_k_m.gguf +3 -0
- marco-o1-q5_k_s.gguf +3 -0
- marco-o1-q6_k.gguf +3 -0
- marco-o1-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 |
+
marco-o1-q2_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
marco-o1-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
marco-o1-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
marco-o1-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
marco-o1-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
marco-o1-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
marco-o1-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
marco-o1-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
marco-o1-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
marco-o1-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
marco-o1-q2_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:88d30040cc6f3a8cf3fed31e1fb84191323474ebe9956ce0391bfd36f7c62cac
|
| 3 |
+
size 3015938208
|
marco-o1-q3_k_l.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:682354243d4bcb126239bd8c4c200ba01f25714950d8d28c1b86e8867fed69b1
|
| 3 |
+
size 4088457376
|
marco-o1-q3_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75c54dfa2f290b6cc6a63c86c45bbf3afc0c23c126abbc797a17b1fa0b3d78df
|
| 3 |
+
size 3808389280
|
marco-o1-q3_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa784cadf2234aec85eb8abf071e7fa3ba3477df48979769802e46e694a7c806
|
| 3 |
+
size 3492366496
|
marco-o1-q4_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a20eb4bb45ce30b254c4d6ee9895f07abeb4d97625742f15bd4fdf872d59d48
|
| 3 |
+
size 4683071648
|
marco-o1-q4_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07839c711ab9559a1f670dc7772b6ba88f03c73ea8f5411454968dcd554d9441
|
| 3 |
+
size 4457767072
|
marco-o1-q5_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d457d17a4c39d7831fd4adf2c8f90098235ba31edf998bc0041cfa58a063f424
|
| 3 |
+
size 5444829344
|
marco-o1-q5_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2e8ccdda325676b6f1d9c715bc25d00604a4d1c97ea1c789ed1e6670b44f3bd
|
| 3 |
+
size 5315174560
|
marco-o1-q6_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0431d0d98c4af3d303eb46495a6d000a692704cbb57c89d85b76aa3717444d8f
|
| 3 |
+
size 6254196896
|
marco-o1-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0284fe8d400057142e6750f19befb773ebc8e5a1050fd2beb9ae882818c43b51
|
| 3 |
+
size 8098523296
|