Views
No views yet
1# Using Zoo Desktop
2zoo model download coder-1
3
4# Using Ollama/Zoo Node API
5ollama pull zoo/coder-11from zoo import CoderModel
2
3# Load the model
4model = CoderModel.load("zooai/coder-1")
5
6# Code completion
7code = model.complete("""
8def fibonacci(n):
9 # Generate the nth Fibonacci number
10""")
11
12# Code review
13review = model.review("""
14def calculate_total(items):
15 total = 0
16 for item in items:
17 total = total + item.price * item.quantity
18 return total
19""")
20
21# Bug fixing
22fixed_code = model.fix("""
23def binary_search(arr, target):
24 left, right = 0, len(arr)
25 while left < right:
26 mid = (left + right) / 2
27 if arr[mid] == target:
28 return mid
29 elif arr[mid] < target:
30 left = mid
31 else:
32 right = mid
33 return -1
34""")1curl http://localhost:2000/v1/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "zoo/coder-1",
5 "prompt": "Write a Python function to merge two sorted arrays",
6 "max_tokens": 500,
7 "temperature": 0.7
8 }'| Variant | Size | Use Case |
|---|---|---|
| Q2_K | ~2GB | Edge devices, quick prototyping |
| Q3_K_M | ~2.5GB | Mobile apps, lightweight servers |
| Q4_K_M | ~3.2GB | Recommended - Best balance |
| Q5_K_M | ~4GB | High-quality production |
| Q6_K | ~5GB | Maximum quality deployment |
1@model{zoo2024coder,
2 title={Zoo Coder-1: Enterprise-grade Coding AI Model},
3 author={Zoo AI Team},
4 year={2024},
5 publisher={Zoo AI},
6 url={https://huggingface.co/zooai/coder-1}
7}