Instructions to use Rohanify/Indenta-13M-Python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Rohanify/Indenta-13M-Python with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Rohanify/Indenta-13M-Python", filename="indenta-9m.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Rohanify/Indenta-13M-Python with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Rohanify/Indenta-13M-Python # Run inference directly in the terminal: llama-cli -hf Rohanify/Indenta-13M-Python
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Rohanify/Indenta-13M-Python # Run inference directly in the terminal: llama-cli -hf Rohanify/Indenta-13M-Python
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 Rohanify/Indenta-13M-Python # Run inference directly in the terminal: ./llama-cli -hf Rohanify/Indenta-13M-Python
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 Rohanify/Indenta-13M-Python # Run inference directly in the terminal: ./build/bin/llama-cli -hf Rohanify/Indenta-13M-Python
Use Docker
docker model run hf.co/Rohanify/Indenta-13M-Python
- LM Studio
- Jan
- vLLM
How to use Rohanify/Indenta-13M-Python with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Rohanify/Indenta-13M-Python" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Rohanify/Indenta-13M-Python", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Rohanify/Indenta-13M-Python
- Ollama
How to use Rohanify/Indenta-13M-Python with Ollama:
ollama run hf.co/Rohanify/Indenta-13M-Python
- Unsloth Studio new
How to use Rohanify/Indenta-13M-Python with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Rohanify/Indenta-13M-Python to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Rohanify/Indenta-13M-Python to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Rohanify/Indenta-13M-Python to start chatting
- Docker Model Runner
How to use Rohanify/Indenta-13M-Python with Docker Model Runner:
docker model run hf.co/Rohanify/Indenta-13M-Python
- Lemonade
How to use Rohanify/Indenta-13M-Python with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Rohanify/Indenta-13M-Python
Run and chat with the model
lemonade run user.Indenta-13M-Python-{{QUANT_TAG}}List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,17 +19,20 @@ ollama:
|
|
| 19 |
### Response:
|
| 20 |
params:
|
| 21 |
temperature: 0.1
|
| 22 |
-
top_p: 0.
|
| 23 |
-
repeat_penalty:
|
|
|
|
|
|
|
| 24 |
stop:
|
| 25 |
- "### Instruction:"
|
|
|
|
|
|
|
| 26 |
---
|
| 27 |
|
| 28 |
# 🚀 Indenta-13M-Python (GGUF)
|
| 29 |
|
| 30 |
-
An optimized from-scratch model made with a custom tokenizer and
|
| 31 |
-
This model is
|
| 32 |
-
This model has ~13M parameters, making it ideal for almost any machine!
|
| 33 |
|
| 34 |
---
|
| 35 |
|
|
@@ -37,7 +40,29 @@ This model has ~13M parameters, making it ideal for almost any machine!
|
|
| 37 |
|
| 38 |
Because the system configuration is baked directly into this Hugging Face repository card, nobody needs to manually create a local `Modelfile`.
|
| 39 |
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
```bash
|
| 43 |
-
ollama run hf.co/Rohanify/Indenta-13M-Python
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
### Response:
|
| 20 |
params:
|
| 21 |
temperature: 0.1
|
| 22 |
+
top_p: 0.8
|
| 23 |
+
repeat_penalty: 2.0
|
| 24 |
+
repeat_last_n: 64
|
| 25 |
+
num_ctx: 256
|
| 26 |
stop:
|
| 27 |
- "### Instruction:"
|
| 28 |
+
- "### Response:"
|
| 29 |
+
- "<|endoftext|>"
|
| 30 |
---
|
| 31 |
|
| 32 |
# 🚀 Indenta-13M-Python (GGUF)
|
| 33 |
|
| 34 |
+
An optimized from-scratch model made with a custom tokenizer and GPT-2 architecture.
|
| 35 |
+
This model is built specifically for lightning-fast Python code completions and basic code generation. At ~13M parameters, it runs with near-zero latency on absolutely any hardware!
|
|
|
|
| 36 |
|
| 37 |
---
|
| 38 |
|
|
|
|
| 40 |
|
| 41 |
Because the system configuration is baked directly into this Hugging Face repository card, nobody needs to manually create a local `Modelfile`.
|
| 42 |
|
| 43 |
+
### ⚠️ Critical Usage Note for 13M Parameters
|
| 44 |
+
Because this model is highly optimized and ultra-lightweight (~13M parameters), it is architectural design-limited to **single-turn tasks**. It does not possess a multi-turn chat memory tracking mechanism.
|
| 45 |
+
Allowing Ollama to stack message history will cause the attention layers to collapse.
|
| 46 |
+
|
| 47 |
+
To ensure a perfect experience without crashes, use either of the two methods below:
|
| 48 |
+
|
| 49 |
+
### Method 1: Stateless Mode (Recommended 🚀)
|
| 50 |
+
Pass your prompt directly inside quotes in your terminal. This forces Ollama to run a clean, stateless, single-turn generation that will **never crash**:
|
| 51 |
|
| 52 |
```bash
|
| 53 |
+
ollama run hf.co/Rohanify/Indenta-13M-Python "write a function to reverse a list"
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
### Method 2: Interactive Terminal Mode
|
| 57 |
+
If you are using the interactive chat loop (`ollama run hf.co/Rohanify/Indenta-13M-Python`), simply wipe the conversation memory before typing your next prompt by entering `/clear`:
|
| 58 |
+
|
| 59 |
+
```text
|
| 60 |
+
>>> write a for loop
|
| 61 |
+
[Model generates code safely]
|
| 62 |
+
|
| 63 |
+
>>> /clear
|
| 64 |
+
Cleared session context
|
| 65 |
+
|
| 66 |
+
>>> reverse a linked list
|
| 67 |
+
[Model generates next code safely]
|
| 68 |
+
```
|