Downloads · 30 days
7
13% of all-time downloads
KingyJr/King-Kode-128k
King-Kode-128k is a machine learning model from KingyJr. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
An advanced AI-powered coding assistant model based on DeepSeek Coder 33B Instruct with extended capabilities, larger token size, and specialized debugging tokens.
Downloads · 30 days
7
13% of all-time downloads
All-time downloads
56
Public
Parameters
33.3B
66.7 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors66.7 GB · 100%
From the Hugging Face model README
An advanced AI-powered coding assistant model based on DeepSeek Coder 33B Instruct with extended capabilities, larger token size, and specialized debugging tokens.

| Parameter | Value |
|---|---|
| Base Model | DeepSeek-Coder-33B-Instruct |
| Token Size | 128,000 (128K) |
| RoPE Scaling | 8x Dynamic Scaling |
| Precision | FP16 & 4-bit |
| Flash Attention | FlashAttention-2 Enabled |
| Tokenizer | DeepSeek 33B Tokenizer with custom tokens |
| Architecture | Transformer |
| Layers | 80 |
| Hidden Size | 7168 |
| Attention Heads | 56 |
| Training Data | Python, JavaScript, C++, Java, Rust, SQL, Bash, HTML, JSON, YAML, etc. |
| Batch Size | Optimized for large-scale inference |
King-Kode-128K introduces 21+ custom tokens for AI-powered debugging, code refactoring, and performance optimization.
| Token | Purpose |
|---|---|
<DEBUG> | Debug the code and detect issues. |
<FIX_CODE> | Automatically fix errors in the script. |
<AUTOCOMPLETE> | Provide AI-powered code completion. |
<AUTO_DEBUG> | Perform automatic debugging with AI. |
<DEBUG_SCRIPT> | Debug the entire script at once. |
<GENERATE> | Generate code snippets based on user instructions. |
<EXPLAIN_ERROR> | Explain errors in simple terms. |
<SUGGEST_FIX> | Provide AI-powered fixes for detected issues. |
<CODE_REFACTOR> | Suggest and apply better coding practices. |
<OPTIMIZE_PERFORMANCE> | Identify bottlenecks and optimize code. |
<FORMAT_CODE> | Format the code to follow best practices. |
<REWRITE_CODE> | Rewrite existing code for clarity or efficiency. |
<CODE_SUMMARY> | Summarize what the code does. |
<AUTO_COMMENT> | Add meaningful comments to the code. |
<RUN_TESTS> | AI-assisted test execution. |
<ANALYZE_COMPLEXITY> | Analyze algorithm complexity (Big O analysis). |
<FIX_BUG> | Automatically identify and fix bugs. |
<CHECK_SYNTAX> | Check syntax errors in real-time. |
<AI_ASSIST> | General AI assistant command for debugging & coding. |
<INTELLIGENT_COMPLETION> | AI-driven code completion for large-scale scripts. |
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "KingyJr/King-Kode-128K"
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Load model with FlashAttention-2 optimization
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")
print("Model and tokenizer loaded successfully!")
prompt = "<DEBUG> Fix the following Python code:
print(Hello World)"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=512)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
| File | Description |
|---|---|
config.json | Model configuration. |
generation_config.json | Generation settings. |
model.safetensors.index.json | Index of model shards. |
model-00001-of-00007.safetensors - model-00007-of-00007.safetensors | Model weights. |
special_tokens_map.json | Special token mapping. |
tokenizer.json | Tokenizer settings. |
tokenizer_config.json | Tokenizer configuration. |
If you use King-Kode-128K, please cite:
@article{KingKode128K,
author = {KingyJr},
title = {King-Kode-128K: AI Debugging and Code Assistant},
journal = {Hugging Face Models},
year = {2025},
url = {https://huggingface.co/KingyJr/King-Kode-128K}
}
For issues, suggestions, or contributions, please open a GitHub issue or contact KingyJr.
This model is designed to enhance software development with AI-driven debugging, optimization, and code generation. Enjoy coding!