- Zed text editor installed
- Ollama installed
brew install hfcd ~
hf download mradermacher/zeta-2.1-GGUF --include "*Q4_K_M.gguf" --local-dir ./zeta-modelcd zeta-modelCreate a new Modelfile with the following contents:
FROM ./zeta-2.1.Q4_K_M.gguf
# Zed sends this stop token for zeta-2.1 (V0318 format).
# NOTE: the "▁" characters are U+2581 "LOWER ONE EIGHTH BLOCK", not spaces.
PARAMETER stop "<[end▁of▁sentence]>"
# Set system parameters
PARAMETER temperature 0.2ollama create zeta2.1 -f Modelfileollama run zeta2.1Add to Zed's settings.json:
"edit_predictions": {
"provider": "ollama",
"ollama": {
"api_url": "http://localhost:11434",
"model": "zeta2.1",
"prompt_format": "zeta2_1",
"max_output_tokens": 512,
},
},
"show_edit_predictions": true,Restart zed, then test out your edit predictions. It's not quick, but it should work.
Reference: