Text Generation
English
code
gooncoder / README.md
dyesongay's picture
Update README.md
97a2528 verified
|
Raw History Blame Contribute Delete
3.43 kB
---
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