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
Update README.md
Browse files5 unmodified lines67891011121314151617185 unmodified lines- unsloth---# CodeThinker-Python-270M : GGUFThis model was converted to GGUF format using [Unsloth](https://github.com/unslothai/unsloth).**Example usage**:- For text only LLMs: `llama-cli -hf KomorAI/CodeThinker-Python-270M --jinja`- For multimodal models: `llama-mtmd-cli -hf KomorAI/CodeThinker-Python-270M --jinja`## Available model files:- `gemma-3-270m-it.Q4_K_M.gguf`5 unmodified lines6789101112131415161718192021222324252627282930313233343536373839404142434445464748495 unmodified lines- unsloth---# KomorAI/CodeThinker-Python-270MLekki model językowy klasy **270M parametrów** przeznaczony do zadań związanych z **językiem Python** (uzupełnianie kodu, proste funkcje, refaktoryzacja, podstawowe skrypty).> **Uwaga:** Nazwa *CodeThinker* jest wyłącznie umowna — model **nie posiada wbudowanego trybu reasoning / chain-of-thought** (nie generuje ukrytych ani jawnych łańcuchów rozumowania przed odpowiedzią).## Najważniejsze cechy- **Rozmiar:** ~270M parametrów — niskie zużycie pamięci VRAM/RAM oraz szybka inferencja nawet na słabszym sprzęcie (CPU / GPU klasy consumer).- **Specjalizacja:** Python (składnia, biblioteka standardowa, typowe wzorce i krótkie snippet-y).- **Brak reasoningu:** Bezpośrednia generacja tokenów wyjściowych bez dedykowanego mechanizmu wieloetapowego wnioskowania.## Szybki start (Transformers)```pythonimport torchfrom transformers import AutoModelForCausalLM, AutoTokenizermodel_id = "KomorAI/CodeThinker-Python-270M"tokenizer = AutoTokenizer.from_pretrained(model_id)model = AutoModelForCausalLM.from_pretrained(model_id,torch_dtype="auto",device_map="auto",)prompt = "def fibonacci(n: int) -> list[int]:\n"inputs = tokenizer(prompt, return_tensors="pt").to(model.device)with torch.no_grad():outputs = model.generate(**inputs,max_new_tokens=128,temperature=0.2,top_p=0.95,do_sample=True,pad_token_id=tokenizer.eos_token_id,)print(tokenizer.decode(outputs[0], skip_special_tokens=True))
README.md+38-7