Instructions to use KomorAI/CodeThinker-Python-270M 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 KomorAI/CodeThinker-Python-270M 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 KomorAI/CodeThinker-Python-270M:Q4_K_M # Run inference directly in the terminal: llama cli -hf KomorAI/CodeThinker-Python-270M:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf KomorAI/CodeThinker-Python-270M:Q4_K_M # Run inference directly in the terminal: llama cli -hf KomorAI/CodeThinker-Python-270M:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf KomorAI/CodeThinker-Python-270M:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf KomorAI/CodeThinker-Python-270M:Q4_K_M
Use Docker
docker model run hf.co/KomorAI/CodeThinker-Python-270M:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use KomorAI/CodeThinker-Python-270M with Ollama:
ollama run hf.co/KomorAI/CodeThinker-Python-270M:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use KomorAI/CodeThinker-Python-270M with Docker Model Runner:
docker model run hf.co/KomorAI/CodeThinker-Python-270M:Q4_K_M
- Lemonade
How to use KomorAI/CodeThinker-Python-270M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull KomorAI/CodeThinker-Python-270M:Q4_K_M
Run and chat with the model
lemonade run user.CodeThinker-Python-270M-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub
Browse filesFiles changed (3)
- .gitattributes+1
- ModelfileAdded+22
- gemma-3-270m-it.Q4_K_M.ggufAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textgemma-3-270m-it.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122
FROM gemma-3-270m-it.Q4_K_M.ggufTEMPLATE """{{- $systemPromptAdded := false }}{{- range $i, $_ := .Messages }}{{- $last := eq (len (slice $.Messages $i)) 1 }}{{- if eq .Role "user" }}<start_of_turn>user{{- if (and (not $systemPromptAdded) $.System) }}{{- $systemPromptAdded = true }}{{ $.System }}{{ end }}{{ .Content }}<end_of_turn>{{ if $last }}<start_of_turn>model{{ end }}{{- else if eq .Role "assistant" }}<start_of_turn>model{{ .Content }}{{ if not $last }}<end_of_turn>{{ end }}{{- end }}{{- end }}"""PARAMETER stop "<end_of_turn>"PARAMETER top_k 64PARAMETER top_p 0.95123version https://git-lfs.github.com/spec/v1oid sha256:ebd1341e8bcaad9700135752f3ddfb1e0aa3bd9388340ce245ac634d28b5436bsize 253114880.gitattributes+1
ModelfileAdded+22
gemma-3-270m-it.Q4_K_M.ggufAdded+3