Text Generation
English
code
File size: 3,428 Bytes
a57b4bf
 
 
 
 
 
 
 
 
 
 
97a2528
a57b4bf
9d91afd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a57b4bf
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
license: mit
datasets:
- Roman1111111/claude-opus-4.6-10000x
language:
- en
base_model:
- Jackrong/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled
pipeline_tag: text-generation
tags:
- code
new_version: Jackrong/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled
---
# 🧱 Shulker Code β€” Coding LLM by @kopeedev

> A production-ready, scalable Transformer-based LLM built **exclusively for programming tasks**.  
> From 5M to 80B parameters. CPU to multi-GPU. Your local GitHub Copilot.

---

## πŸš€ Quick Start

```bash
# Install dependencies
pip install -r requirements.txt

# Generate code
python main.py generate --prompt "Write a Python function to reverse a linked list"

# Train on your own dataset
python main.py train --config configs/small.yaml --data data/sample_dataset.jsonl

# Debug mode (analyze + fix code)
python main.py debug --file mycode.py

# Launch Web UI
python main.py webui
```

---

## πŸ“ Model Variants

| Variant    | Params   | Layers | Heads | Hidden | Use Case             |
|------------|----------|--------|-------|--------|----------------------|
| `nano`     | ~5M      | 4      | 4     | 256    | CPU / Edge devices   |
| `small`    | ~125M    | 12     | 12    | 768    | Laptop GPU           |
| `medium`   | ~1.3B    | 24     | 16    | 2048   | RTX 3080+            |
| `large`    | ~7B      | 32     | 32    | 4096   | A100 / Multi-GPU     |
| `xlarge`   | ~80B     | 64     | 64    | 8192   | GPU Clusters         |

---

## πŸ“ Project Structure

```
shulker_code/
β”œβ”€β”€ model/              # Transformer architecture
β”‚   β”œβ”€β”€ transformer.py  # Core model (GPT-style decoder)
β”‚   β”œβ”€β”€ attention.py    # Multi-head & grouped-query attention
β”‚   β”œβ”€β”€ embeddings.py   # Token + positional embeddings (RoPE)
β”‚   └── lora.py         # LoRA / PEFT fine-tuning
β”œβ”€β”€ data/               # Data pipeline
β”‚   β”œβ”€β”€ tokenizer.py    # BPE tokenizer (code-optimized)
β”‚   β”œβ”€β”€ dataset.py      # Dataset loaders (JSON/TXT/JSONL)
β”‚   └── sample_dataset.jsonl
β”œβ”€β”€ training/           # Training system
β”‚   β”œβ”€β”€ trainer.py      # Main training loop
β”‚   β”œβ”€β”€ scheduler.py    # LR schedulers
β”‚   └── checkpointing.py
β”œβ”€β”€ inference/          # Inference engine
β”‚   β”œβ”€β”€ engine.py       # Fast generation engine
β”‚   └── streaming.py    # Streaming / typing-effect output
β”œβ”€β”€ utils/              # Utilities
β”‚   β”œβ”€β”€ hardware.py     # Hardware detection & optimization
β”‚   β”œβ”€β”€ quantization.py # INT8 / 4-bit quantization
β”‚   └── banner.py       # CLI ASCII art banner
β”œβ”€β”€ configs/            # Model configs
β”‚   β”œβ”€β”€ nano.yaml
β”‚   β”œβ”€β”€ small.yaml
β”‚   β”œβ”€β”€ medium.yaml
β”‚   β”œβ”€β”€ large.yaml
β”‚   └── xlarge.yaml
β”œβ”€β”€ plugins/            # Plugin system
β”‚   └── code_executor.py
β”œβ”€β”€ web/                # Web UI
β”‚   └── app.py          # FastAPI web interface
β”œβ”€β”€ main.py             # CLI entrypoint
└── requirements.txt
```

---

## πŸ›  Hardware Guide

- **CPU only** β†’ use `nano` config with INT8 quantization  
- **Single GPU (8GB)** β†’ use `small` with FP16  
- **Single GPU (24GB+)** β†’ use `medium` with FP16  
- **Multi-GPU** β†’ use `large` or `xlarge` with DDP/FSDP  

---

## πŸ“œ License
MIT β€” Developed by [@kopeedev](https://github.com/faisalgitt) / CyeroX Development