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 files- .gitattributes +1 -0
- Modelfile +22 -0
- gemma-3-270m-it.Q4_K_M.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ 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 |
+
gemma-3-270m-it.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
Modelfile
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
FROM gemma-3-270m-it.Q4_K_M.gguf
|
| 3 |
+
TEMPLATE """{{- $systemPromptAdded := false }}
|
| 4 |
+
{{- range $i, $_ := .Messages }}
|
| 5 |
+
{{- $last := eq (len (slice $.Messages $i)) 1 }}
|
| 6 |
+
{{- if eq .Role "user" }}<start_of_turn>user
|
| 7 |
+
{{- if (and (not $systemPromptAdded) $.System) }}
|
| 8 |
+
{{- $systemPromptAdded = true }}
|
| 9 |
+
{{ $.System }}
|
| 10 |
+
{{ end }}
|
| 11 |
+
{{ .Content }}<end_of_turn>
|
| 12 |
+
{{ if $last }}<start_of_turn>model
|
| 13 |
+
{{ end }}
|
| 14 |
+
{{- else if eq .Role "assistant" }}<start_of_turn>model
|
| 15 |
+
{{ .Content }}{{ if not $last }}<end_of_turn>
|
| 16 |
+
{{ end }}
|
| 17 |
+
{{- end }}
|
| 18 |
+
{{- end }}
|
| 19 |
+
"""
|
| 20 |
+
PARAMETER stop "<end_of_turn>"
|
| 21 |
+
PARAMETER top_k 64
|
| 22 |
+
PARAMETER top_p 0.95
|
gemma-3-270m-it.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ebd1341e8bcaad9700135752f3ddfb1e0aa3bd9388340ce245ac634d28b5436b
|
| 3 |
+
size 253114880
|