Upload README.yaml with huggingface_hub
Browse files- README.yaml +87 -89
README.yaml
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
---
|
| 2 |
# Model Card for Legion Coder 8M
|
| 3 |
# YAML Front Matter for Hugging Face Hub
|
| 4 |
|
|
@@ -7,126 +6,125 @@ library_name: transformers
|
|
| 7 |
license: mit
|
| 8 |
pipeline_tag: text-generation
|
| 9 |
language:
|
| 10 |
-
|
| 11 |
-
|
| 12 |
tags:
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
|
| 30 |
datasets:
|
| 31 |
-
|
| 32 |
|
| 33 |
metrics:
|
| 34 |
-
|
| 35 |
-
|
| 36 |
|
| 37 |
model-index:
|
| 38 |
-
|
| 39 |
-
|
| 40 |
|
| 41 |
inference:
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
|
| 48 |
sagemaker:
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
|
| 54 |
# Model Details
|
| 55 |
model_details:
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
|
| 72 |
# Training Details
|
| 73 |
training_details:
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
|
| 82 |
# Intended Use
|
| 83 |
intended_use:
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
|
| 98 |
# Limitations
|
| 99 |
limitations:
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
|
| 105 |
# Ethical Considerations
|
| 106 |
ethical_considerations:
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
|
| 112 |
# Citation
|
| 113 |
citation: |
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
|
| 121 |
# Contact
|
| 122 |
contact:
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
|
| 127 |
# Branding
|
| 128 |
branding:
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
---
|
|
|
|
|
|
|
| 1 |
# Model Card for Legion Coder 8M
|
| 2 |
# YAML Front Matter for Hugging Face Hub
|
| 3 |
|
|
|
|
| 6 |
license: mit
|
| 7 |
pipeline_tag: text-generation
|
| 8 |
language:
|
| 9 |
+
- en
|
| 10 |
+
- code
|
| 11 |
tags:
|
| 12 |
+
- transformers
|
| 13 |
+
- pytorch
|
| 14 |
+
- safetensors
|
| 15 |
+
- text-generation
|
| 16 |
+
- code-generation
|
| 17 |
+
- python
|
| 18 |
+
- javascript
|
| 19 |
+
- coding
|
| 20 |
+
- programming
|
| 21 |
+
- sagemaker
|
| 22 |
+
- amazon-sagemaker
|
| 23 |
+
- cpu
|
| 24 |
+
- compact
|
| 25 |
+
- efficient
|
| 26 |
+
- nvdya-kit
|
| 27 |
+
- death-legion
|
| 28 |
|
| 29 |
datasets:
|
| 30 |
+
- the-stack-v2
|
| 31 |
|
| 32 |
metrics:
|
| 33 |
+
- perplexity
|
| 34 |
+
- accuracy
|
| 35 |
|
| 36 |
model-index:
|
| 37 |
+
- name: Legion Coder 8M
|
| 38 |
+
results: []
|
| 39 |
|
| 40 |
inference:
|
| 41 |
+
parameters:
|
| 42 |
+
temperature: 0.8
|
| 43 |
+
top_p: 0.95
|
| 44 |
+
top_k: 50
|
| 45 |
+
max_new_tokens: 200
|
| 46 |
|
| 47 |
sagemaker:
|
| 48 |
+
sdk_version: "2.200.0"
|
| 49 |
+
instance_type: "ml.m5.large"
|
| 50 |
+
instance_count: 1
|
| 51 |
+
container_image: "huggingface-pytorch-inference:2.0.0-transformers4.28.1-cpu-py310-ubuntu20.04-v1.0"
|
| 52 |
|
| 53 |
# Model Details
|
| 54 |
model_details:
|
| 55 |
+
name: Legion Coder 8M
|
| 56 |
+
version: 1.0.0
|
| 57 |
+
description: A compact yet powerful 44M parameter transformer model optimized for coding tasks
|
| 58 |
+
developer: DEATH LEGION
|
| 59 |
+
powered_by: nvdya-kit
|
| 60 |
+
architecture: GPT-style Transformer
|
| 61 |
+
parameters: 44,341,632
|
| 62 |
+
model_size: 170MB
|
| 63 |
+
hidden_size: 576
|
| 64 |
+
num_layers: 13
|
| 65 |
+
num_heads: 16
|
| 66 |
+
context_length: 1024
|
| 67 |
+
vocabulary_size: 16000
|
| 68 |
+
format: Safetensors
|
| 69 |
+
precision: float32
|
| 70 |
|
| 71 |
# Training Details
|
| 72 |
training_details:
|
| 73 |
+
optimizer: AdamW
|
| 74 |
+
learning_rate: 5e-4
|
| 75 |
+
lr_schedule: cosine_decay
|
| 76 |
+
batch_size: 4
|
| 77 |
+
gradient_accumulation: true
|
| 78 |
+
training_steps: 10000
|
| 79 |
+
precision: float32
|
| 80 |
|
| 81 |
# Intended Use
|
| 82 |
intended_use:
|
| 83 |
+
primary_use_cases:
|
| 84 |
+
- Code completion and generation
|
| 85 |
+
- Function generation from descriptions
|
| 86 |
+
- Debugging assistance
|
| 87 |
+
- Code explanation and documentation
|
| 88 |
+
- Programming concept explanations
|
| 89 |
+
- Code scaffolding and prototyping
|
| 90 |
+
target_users:
|
| 91 |
+
- Software developers
|
| 92 |
+
- Students learning to code
|
| 93 |
+
- Data scientists
|
| 94 |
+
- DevOps engineers
|
| 95 |
+
- Technical writers
|
| 96 |
|
| 97 |
# Limitations
|
| 98 |
limitations:
|
| 99 |
+
- Limited to 1,024 token context window
|
| 100 |
+
- Trained primarily on Python code
|
| 101 |
+
- May generate code that requires review before production use
|
| 102 |
+
- Not suitable for non-coding tasks
|
| 103 |
|
| 104 |
# Ethical Considerations
|
| 105 |
ethical_considerations:
|
| 106 |
+
- Generated code should be reviewed before deployment
|
| 107 |
+
- May reproduce patterns from training data
|
| 108 |
+
- Not a replacement for human code review
|
| 109 |
+
- Users are responsible for compliance with licenses of generated code
|
| 110 |
|
| 111 |
# Citation
|
| 112 |
citation: |
|
| 113 |
+
@misc{legioncoder2026,
|
| 114 |
+
title={Legion Coder 8M: A Compact Transformer for Code Generation},
|
| 115 |
+
author={DEATH LEGION},
|
| 116 |
+
year={2026},
|
| 117 |
+
howpublished={\url{https://huggingface.co/dineth554/legion-coder-8m}}
|
| 118 |
+
}
|
| 119 |
|
| 120 |
# Contact
|
| 121 |
contact:
|
| 122 |
+
developer: DEATH LEGION
|
| 123 |
+
powered_by: nvdya-kit
|
| 124 |
+
repository: https://huggingface.co/dineth554/legion-coder-8m
|
| 125 |
|
| 126 |
# Branding
|
| 127 |
branding:
|
| 128 |
+
tagline: MADE WITH BY DEATH LEGION
|
| 129 |
+
powered_by: nvdya-kit
|
| 130 |
+
copyright: 2026 DEATH LEGION. All rights reserved.
|
|
|