Instructions to use midnightcoderagent/MidnightCoder-80B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use midnightcoderagent/MidnightCoder-80B with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf midnightcoderagent/MidnightCoder-80B # Run inference directly in the terminal: llama cli -hf midnightcoderagent/MidnightCoder-80B
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf midnightcoderagent/MidnightCoder-80B # Run inference directly in the terminal: llama cli -hf midnightcoderagent/MidnightCoder-80B
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 midnightcoderagent/MidnightCoder-80B # Run inference directly in the terminal: ./llama-cli -hf midnightcoderagent/MidnightCoder-80B
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 midnightcoderagent/MidnightCoder-80B # Run inference directly in the terminal: ./build/bin/llama-cli -hf midnightcoderagent/MidnightCoder-80B
Use Docker
docker model run hf.co/midnightcoderagent/MidnightCoder-80B
- LM Studio
- Jan
- Ollama
How to use midnightcoderagent/MidnightCoder-80B with Ollama:
ollama run hf.co/midnightcoderagent/MidnightCoder-80B
- Unsloth Desktop
- Pi
How to use midnightcoderagent/MidnightCoder-80B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf midnightcoderagent/MidnightCoder-80B
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "midnightcoderagent/MidnightCoder-80B" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use midnightcoderagent/MidnightCoder-80B with Docker Model Runner:
docker model run hf.co/midnightcoderagent/MidnightCoder-80B
- Lemonade
How to use midnightcoderagent/MidnightCoder-80B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull midnightcoderagent/MidnightCoder-80B
Run and chat with the model
lemonade run user.MidnightCoder-80B-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use midnightcoderagent/MidnightCoder-80B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf midnightcoderagent/MidnightCoder-80B
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default midnightcoderagent/MidnightCoder-80B
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use midnightcoderagent/MidnightCoder-80B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf midnightcoderagent/MidnightCoder-80B
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "midnightcoderagent/MidnightCoder-80B" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Great Model
Absolutely Dope model. Also tried the midnight coder CLI but regardless which model i am loading (via lm studio) the CLI reports it has no metadata, even this model. i wasnt able to find out where i could create such a config and would love to see more work being put into the CLI. but the model itself is amazing.
could you recommand any of the parameters incase there are "optimized settings" such as temperature, top k , top p , repeat pen, presence pen. how much experts are recommanded?
best regards, keep going 💪
Thank you very much for the feedback! I’m really glad you liked the model. 🙏
Regarding the metadata in the Midnight Coder CLI, one important note: it can mainly affect the context size before compression. As an alternative, you can manually define the context size using /context ctx_size.
To get started, I suggest these settings for coding:
- Temperature: 0.7
- Top K: 40
- Top P: 0.9
- Repeat Penalty: 1.05
- Presence Penalty: 0.0
These values are a good starting point, but they can be adjusted depending on the type of task. For more deterministic code generation, for example, a temperature between 0.2 and 0.5 may work better.
We’re also working on a new release of Midnight Coder, which will bring many improvements. The new version is becoming extremely powerful, especially in terms of coding-agent capabilities, context management, and efficiency with local models. 🚀
We’re also getting very good results even on older hardware, such as an 8 GB RX 580, running MoE models in the 35B parameter range. This version of the model will also be released soon.
Thank you again for testing it, for the feedback, and for the encouragement! We still have a lot ahead of us, but Midnight Coder is evolving rapidly. 💪🔥
Thank you very much for the feedback! I’m really glad you liked the model. 🙏
Regarding the metadata in the Midnight Coder CLI, one important note: it can mainly affect the context size before compression. As an alternative, you can manually define the context size using
/context ctx_size.To get started, I suggest these settings for coding:
- Temperature: 0.7
- Top K: 40
- Top P: 0.9
- Repeat Penalty: 1.05
- Presence Penalty: 0.0
These values are a good starting point, but they can be adjusted depending on the type of task. For more deterministic code generation, for example, a temperature between 0.2 and 0.5 may work better.
We’re also working on a new release of Midnight Coder, which will bring many improvements. The new version is becoming extremely powerful, especially in terms of coding-agent capabilities, context management, and efficiency with local models. 🚀
We’re also getting very good results even on older hardware, such as an 8 GB RX 580, running MoE models in the 35B parameter range. This version of the model will also be released soon.
Thank you again for testing it, for the feedback, and for the encouragement! We still have a lot ahead of us, but Midnight Coder is evolving rapidly. 💪🔥
thanks for the response. would there be any way to setup specific loading parameters if midnight coder is sending load instructions?
right now the models seem to load with default settings and default options. usually theres cfg files for that in which one can set per model parameters, including the context size u mentioned earlier.
Best Regards
Thank you for the suggestion!
Currently, all available configuration options can be accessed directly through the Midnight Coder TUI using the /command syntax. For example, you can use /context ctx_size to configure the context size.
For now, if you want to use specific default parameters for a model, you can configure them directly in LM Studio, llama.cpp, or Ollama, depending on the backend you are using.
Having model-specific configuration profiles for parameters such as temperature, top-k, top-p, and repeat penalty is definitely an interesting feature. We’ll evaluate the possibility of implementing this directly in Midnight Coder, with support across llama.cpp, Ollama, and LM Studio.
This would allow Midnight Coder to automatically apply optimized settings depending on the model and backend, instead of requiring users to configure them manually in each platform.
We’re already working on a new release of Midnight Coder with many improvements, so this is something we can evaluate for the upcoming versions.
Thanks again for the suggestion and for helping us improve Midnight Coder! 🚀💪
Best regards!