File size: 1,087 Bytes
2ca634c f515b17 2ca634c 4c4dace f515b17 9f5ac74 f515b17 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | ---
license: apache-2.0
language:
- en
pipeline_tag: text-generation
tags:
- code
- code-generation
- parrot-coder
- inserloft
---

# Parrot Coder 🦜
**Parrot Coder** is a highly efficient, 200M parameter language model optimized for rapid code autocompletion and code generation tasks. Developed by Inserloft Research.
This repository contains the **merged base model + LoRA adapters** in `.safetensors` format, ready for direct inference using `transformers`.
## Usage
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "InserloftResearch/Parrot-Coder"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
prompt = "def fibonacci(n):"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```
For GGUF versions, visit our [Ollama Registry](https://ollama.com/Inserloft/ParrotCode).
|