Instructions to use Clem27AI/KLA-Gamia-coding with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Clem27AI/KLA-Gamia-coding with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Clem27AI/KLA-Gamia-coding")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Clem27AI/KLA-Gamia-coding") model = AutoModelForCausalLM.from_pretrained("Clem27AI/KLA-Gamia-coding") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Clem27AI/KLA-Gamia-coding with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Clem27AI/KLA-Gamia-coding" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Clem27AI/KLA-Gamia-coding", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Clem27AI/KLA-Gamia-coding
- SGLang
How to use Clem27AI/KLA-Gamia-coding with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Clem27AI/KLA-Gamia-coding" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Clem27AI/KLA-Gamia-coding", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Clem27AI/KLA-Gamia-coding" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Clem27AI/KLA-Gamia-coding", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Clem27AI/KLA-Gamia-coding with Docker Model Runner:
docker model run hf.co/Clem27AI/KLA-Gamia-coding
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,4 +10,34 @@ tags:
|
|
| 10 |
model-index:
|
| 11 |
- name: KLA-Gamia-coding
|
| 12 |
results: []
|
| 13 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
model-index:
|
| 11 |
- name: KLA-Gamia-coding
|
| 12 |
results: []
|
| 13 |
+
---
|
| 14 |
+
# 🛠️ Fiche Technique : KLA-Gamia-coding 🎮
|
| 15 |
+
|
| 16 |
+

|
| 17 |
+
|
| 18 |
+
KLA-Gamia-coding est un modèle de langage à petite échelle (SLM) de la lignée KLA, optimisé pour la génération de briques de code logiques et l'assistance au développement avec la bibliothèque Pygame.
|
| 19 |
+
|
| 20 |
+
# 🧬 Architecture & Fondations
|
| 21 |
+
* Modèle de base : KLA-SLM-CODING (0.2B paramètres).
|
| 22 |
+
* Méthode : Fine-tuning supervisé (SFT) sur 3 époques.
|
| 23 |
+
* Philosophie : "La Rigueur avant la Taille". Un modèle compact mais extrêmement dense en connaissances structurelles.
|
| 24 |
+
* Origine : Pré-entraîné from scratch par Clemylia sur un dataset massif de code source (Hugging Face).
|
| 25 |
+
|
| 26 |
+
# 🚀 Spécifications Techniques
|
| 27 |
+
| Caractéristique | Valeur | Avantage |
|
| 28 |
+
|---|---|---|
|
| 29 |
+
| Paramètres | 0.2B (200M) | Ultra-rapide, faible consommation VRAM. |
|
| 30 |
+
| Vocabulaire | 110 417 Tokens | Pas de fragmentation du code (haute fidélité). |
|
| 31 |
+
| Domaine | Python / Pygame | Expert en logique de jeu et boucles événementielles. |
|
| 32 |
+
| Style | Modulaire | Fournit des briques de code et des explications. |
|
| 33 |
+
|
| 34 |
+
# ✨ Capacités Clés
|
| 35 |
+
* 🧩 Modularité Chirurgicale : Au lieu de produire des blocs de code monolithiques, il décompose les solutions en étapes logiques et en brique (Initialisation, Gestion des Sprites, Boucle d'événements).
|
| 36 |
+
* 📖 Auto-Documentation : Génère spontanément des commentaires explicatifs pour clarifier la logique de jeu, même sur des concepts non présents dans le dataset de fine-tuning.
|
| 37 |
+
|
| 38 |
+
# ⚠️ Limitations & Usage Prévu
|
| 39 |
+
Ce modèle est un assistant de structure. Il excelle dans la création de composants et l'explication de concepts. Pour des systèmes multi-fichiers complexes, il est recommandé de l'utiliser brique par brique en corrigeant les potentielles erreurs de syntaxe en production et usage réel pour garantir une précision maximale.
|
| 40 |
+
|
| 41 |
+
# 👩💻 Crédits
|
| 42 |
+
Développé et entraîné par Clemylia.
|
| 43 |
+
Lignée KLA : L'excellence du code en format compact.
|