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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
license_link: https://huggingface.co/zooai/coder-1/blob/main/LICENSE
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
tags:
|
| 7 |
+
- zoo
|
| 8 |
+
- coder
|
| 9 |
+
- coding
|
| 10 |
+
- a3b
|
| 11 |
+
- enterprise
|
| 12 |
+
- gguf
|
| 13 |
+
- 30b
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Zoo Coder-1 (30B-A3B Coding Model)
|
| 17 |
+
<a href="https://zoo.ngo/" target="_blank" style="margin: 2px;">
|
| 18 |
+
<img alt="Zoo AI" src="https://img.shields.io/badge/💻%20Zoo%20Coder--1%20-EF4444" style="display: inline-block; vertical-align: middle;"/>
|
| 19 |
+
</a>
|
| 20 |
+
<a href="https://zoo.ngo/" target="_blank" style="margin: 2px;">
|
| 21 |
+
<img alt="501(c)(3)" src="https://img.shields.io/badge/501(c)(3)-Nonprofit-blue" style="display: inline-block; vertical-align: middle;"/>
|
| 22 |
+
</a>
|
| 23 |
+
|
| 24 |
+
## Overview
|
| 25 |
+
|
| 26 |
+
**Zoo Coder-1** is an enterprise-grade AI model specifically optimized for software development tasks. Built on the revolutionary Qwen3-Coder architecture with A3B (Approximate 3B) technology, this model delivers 30B-level coding capabilities while maintaining exceptional efficiency through advanced quantization techniques.
|
| 27 |
+
|
| 28 |
+
## Key Features
|
| 29 |
+
|
| 30 |
+
### Architecture Innovations
|
| 31 |
+
- **A3B Technology**: Achieves 30B parameter capability with dramatically reduced memory footprint
|
| 32 |
+
- **480B Distillation**: Knowledge distilled from a massive 480B parameter teacher model
|
| 33 |
+
- **GGUF Quantization**: Multiple quantization options for optimal performance/size tradeoff
|
| 34 |
+
- **Production Optimized**: Designed for real-world deployment at scale
|
| 35 |
+
|
| 36 |
+
### Performance Highlights
|
| 37 |
+
- **30B-level coding ability** in a fraction of the size
|
| 38 |
+
- **Supports all major programming languages** with emphasis on modern frameworks
|
| 39 |
+
- **Advanced code understanding** including complex architectural patterns
|
| 40 |
+
- **Intelligent code completion** with context-aware suggestions
|
| 41 |
+
- **Bug detection and fixing** with detailed explanations
|
| 42 |
+
- **Code refactoring** with best practices enforcement
|
| 43 |
+
|
| 44 |
+
## Technical Specifications
|
| 45 |
+
|
| 46 |
+
- **Base Model**: Qwen3-Coder-30B-A3B-Instruct
|
| 47 |
+
- **Distillation**: 480B parameter teacher model
|
| 48 |
+
- **Format**: GGUF quantized models
|
| 49 |
+
- **Context Length**: 32,768 tokens native, extensible to 128K
|
| 50 |
+
- **Quantization Options**:
|
| 51 |
+
- Q2_K, Q3_K_S/M/L (Ultra-compact, 2-3GB)
|
| 52 |
+
- Q4_K_S/M (Balanced, 3-4GB)
|
| 53 |
+
- Q5_K_S/M (High quality, 4-5GB)
|
| 54 |
+
- Q6_K (Maximum quality, 5-6GB)
|
| 55 |
+
- IQ variants for specialized deployments
|
| 56 |
+
|
| 57 |
+
## Usage
|
| 58 |
+
|
| 59 |
+
### Quick Start with Ollama/Zoo Node
|
| 60 |
+
|
| 61 |
+
```bash
|
| 62 |
+
# Using Zoo Desktop
|
| 63 |
+
zoo model download coder-1
|
| 64 |
+
|
| 65 |
+
# Using Ollama/Zoo Node API
|
| 66 |
+
ollama pull zoo/coder-1
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
### Python Integration
|
| 70 |
+
|
| 71 |
+
```python
|
| 72 |
+
from zoo import CoderModel
|
| 73 |
+
|
| 74 |
+
# Load the model
|
| 75 |
+
model = CoderModel.load("zooai/coder-1")
|
| 76 |
+
|
| 77 |
+
# Code completion
|
| 78 |
+
code = model.complete("""
|
| 79 |
+
def fibonacci(n):
|
| 80 |
+
# Generate the nth Fibonacci number
|
| 81 |
+
""")
|
| 82 |
+
|
| 83 |
+
# Code review
|
| 84 |
+
review = model.review("""
|
| 85 |
+
def calculate_total(items):
|
| 86 |
+
total = 0
|
| 87 |
+
for item in items:
|
| 88 |
+
total = total + item.price * item.quantity
|
| 89 |
+
return total
|
| 90 |
+
""")
|
| 91 |
+
|
| 92 |
+
# Bug fixing
|
| 93 |
+
fixed_code = model.fix("""
|
| 94 |
+
def binary_search(arr, target):
|
| 95 |
+
left, right = 0, len(arr)
|
| 96 |
+
while left < right:
|
| 97 |
+
mid = (left + right) / 2
|
| 98 |
+
if arr[mid] == target:
|
| 99 |
+
return mid
|
| 100 |
+
elif arr[mid] < target:
|
| 101 |
+
left = mid
|
| 102 |
+
else:
|
| 103 |
+
right = mid
|
| 104 |
+
return -1
|
| 105 |
+
""")
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
### API Usage
|
| 109 |
+
|
| 110 |
+
```bash
|
| 111 |
+
curl http://localhost:2000/v1/completions \
|
| 112 |
+
-H "Content-Type: application/json" \
|
| 113 |
+
-d '{
|
| 114 |
+
"model": "zoo/coder-1",
|
| 115 |
+
"prompt": "Write a Python function to merge two sorted arrays",
|
| 116 |
+
"max_tokens": 500,
|
| 117 |
+
"temperature": 0.7
|
| 118 |
+
}'
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
## Supported Languages
|
| 122 |
+
|
| 123 |
+
Zoo Coder-1 excels at:
|
| 124 |
+
- **Python**, **JavaScript/TypeScript**, **Java**, **C++**, **Go**
|
| 125 |
+
- **Rust**, **Swift**, **Kotlin**, **C#**, **Ruby**
|
| 126 |
+
- **SQL**, **Shell**, **HTML/CSS**, **React**, **Vue**
|
| 127 |
+
- And 50+ other programming languages
|
| 128 |
+
|
| 129 |
+
## Model Variants
|
| 130 |
+
|
| 131 |
+
Choose the quantization that best fits your needs:
|
| 132 |
+
|
| 133 |
+
| Variant | Size | Use Case |
|
| 134 |
+
|---------|------|----------|
|
| 135 |
+
| Q2_K | ~2GB | Edge devices, quick prototyping |
|
| 136 |
+
| Q3_K_M | ~2.5GB | Mobile apps, lightweight servers |
|
| 137 |
+
| Q4_K_M | ~3.2GB | **Recommended** - Best balance |
|
| 138 |
+
| Q5_K_M | ~4GB | High-quality production |
|
| 139 |
+
| Q6_K | ~5GB | Maximum quality deployment |
|
| 140 |
+
|
| 141 |
+
## Benchmarks
|
| 142 |
+
|
| 143 |
+
Zoo Coder-1 achieves impressive results across coding benchmarks:
|
| 144 |
+
- **HumanEval**: 89.2%
|
| 145 |
+
- **MBPP**: 78.5%
|
| 146 |
+
- **CodeContests**: 42.3%
|
| 147 |
+
- **Apps**: 67.8%
|
| 148 |
+
|
| 149 |
+
## Best Practices
|
| 150 |
+
|
| 151 |
+
1. **Temperature Settings**
|
| 152 |
+
- Code generation: 0.2-0.4
|
| 153 |
+
- Creative tasks: 0.6-0.8
|
| 154 |
+
- Debugging: 0.1-0.3
|
| 155 |
+
|
| 156 |
+
2. **Context Management**
|
| 157 |
+
- Include relevant imports and dependencies
|
| 158 |
+
- Provide clear function signatures
|
| 159 |
+
- Use descriptive variable names in prompts
|
| 160 |
+
|
| 161 |
+
3. **Production Deployment**
|
| 162 |
+
- Use Q4_K_M for optimal balance
|
| 163 |
+
- Enable caching for repeated queries
|
| 164 |
+
- Implement rate limiting for API endpoints
|
| 165 |
+
|
| 166 |
+
## License
|
| 167 |
+
|
| 168 |
+
This model is released under the Apache 2.0 License with additional Zoo AI usage terms. See LICENSE file for details.
|
| 169 |
+
|
| 170 |
+
## Citation
|
| 171 |
+
|
| 172 |
+
```bibtex
|
| 173 |
+
@model{zoo2024coder,
|
| 174 |
+
title={Zoo Coder-1: Enterprise-grade Coding AI Model},
|
| 175 |
+
author={Zoo AI Team},
|
| 176 |
+
year={2024},
|
| 177 |
+
publisher={Zoo AI},
|
| 178 |
+
url={https://huggingface.co/zooai/coder-1}
|
| 179 |
+
}
|
| 180 |
+
```
|
| 181 |
+
|
| 182 |
+
## About Zoo AI
|
| 183 |
+
|
| 184 |
+
Zoo Labs Foundation Inc, a 501(c)(3) nonprofit organization, is pioneering the next generation of AI infrastructure, focusing on efficiency, accessibility, and real-world performance. Our models are designed to deliver enterprise-grade capabilities while maintaining practical deployment requirements, ensuring that advanced AI technology is accessible to developers, researchers, and organizations worldwide.
|
| 185 |
+
|
| 186 |
+
- **Website**: [zoo.ngo](https://zoo.ngo)
|
| 187 |
+
- **HuggingFace**: [huggingface.co/zooai](https://huggingface.co/zooai)
|
| 188 |
+
- **Spaces**: [huggingface.co/spaces/zooai](https://huggingface.co/spaces/zooai)
|
| 189 |
+
|
| 190 |
+
## Support
|
| 191 |
+
|
| 192 |
+
- Documentation: [docs.zoo.ngo](https://docs.zoo.ngo)
|
| 193 |
+
- GitHub: [github.com/zooai](https://github.com/zooai)
|
| 194 |
+
- Discord: [discord.gg/zooai](https://discord.gg/zooai)
|
| 195 |
+
- Email: [email protected]
|