Views
No views yet


| Model | HumanEval | HumanEval+ | MBPP+ | MMLU | GSM8K |
|---|---|---|---|---|---|
| Maincode/Maincoder-1B | 0.7622 | 0.7256 | 0.7090 | 0.3054 | 0.2976 |
| deepseek-ai/deepseek-coder-1.3b-instruct | 0.5610 | 0.5305 | 0.6217 | 0.2705 | 0.0413 |
| HuggingFaceTB/SmolLM3-3B | 0.5366 | 0.5000 | 0.6799 | 0.5928 | 0.5505 |
| Qwen/Qwen2.5-Coder-1.5B-Instruct | 0.4634 | 0.4451 | 0.6561 | 0.4984 | 0.4944 |
| Qwen/Qwen3-1.7B | 0.4024 | 0.3780 | 0.5582 | 0.5571 | 0.6865 |
| Attribute | Value |
|---|---|
| Parameters | 1B |
| Hidden Size | 1536 |
| Layers | 32 |
| Attention Heads | 16 (4 KV heads) |
| Head Dimension | 96 |
| Vocabulary Size | 151,936 |
| Context Length | 2,048 |
| Precision | bfloat16 |
pip install transformers torch1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained(
4 "Maincode/Maincoder-1B",
5 torch_dtype="auto",
6 device_map="auto",
7 trust_remote_code=True,
8)
9tokenizer = AutoTokenizer.from_pretrained(
10 "Maincode/Maincoder-1B",
11 trust_remote_code=True,
12)
13
14# Code completion example
15prompt = '''def fibonacci(n: int) -> int:
16 """Return the n-th Fibonacci number."""
17'''
18
19inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
20outputs = model.generate(
21 **inputs,
22 max_new_tokens=256,
23 temperature=0.2,
24 do_sample=True,
25)
26print(tokenizer.decode(outputs[0], skip_special_tokens=True))1# Function completion
2prompt = '''def quicksort(arr: list) -> list:
3 """Sort a list using the quicksort algorithm."""
4'''
5
6# Class completion
7prompt = '''class BinarySearchTree:
8 """A binary search tree implementation."""
9
10 def __init__(self):
11'''
12
13# Algorithm implementation
14prompt = '''def dijkstra(graph: dict, start: str, end: str) -> tuple:
15 """Find the shortest path using Dijkstra's algorithm.
16
17 Args:
18 graph: Adjacency list representation of the graph
19 start: Starting node
20 end: Target node
21
22 Returns:
23 Tuple of (distance, path)
24 """
25'''1docker run --rm -it \
2 --device=/dev/kfd --device=/dev/dri --group-add=video \
3 --ipc=host --security-opt seccomp=unconfined \
4 -v $(pwd):/workspace -w /workspace \
5 -e HF_TOKEN \
6 -e PYTHONHASHSEED=0 \
7 -e TORCH_DETERMINISTIC=1 \
8 -e ROCBLAS_ATOMICS_MODE="0" \
9 -e MIOPEN_FIND_MODE="1" \
10 -e CUBLAS_WORKSPACE_CONFIG=":4096:8" \
11 -e HF_ALLOW_CODE_EVAL="1" \
12 rocm/pytorch:rocm7.1.1_ubuntu24.04_py3.12_pytorch_release_2.9.1 \
13 bash -c 'pip install "lm_eval[hf]" && \
14 accelerate launch -m lm_eval \
15 --model hf --model_args "pretrained=Maincode/Maincoder-1B,trust_remote_code=True,dtype=float32" \
16 --tasks humaneval,humaneval_plus,mbpp_plus,mmlu,gsm8k \
17 --device cuda:0 --batch_size 32 --seed 42 \
18 --confirm_run_unsafe_code'1@misc{maincoder2025,
2 title = {Maincoder-1B: A High-Performance 1B Parameter Coding Model},
3 author = {Maincode Team},
4 year = {2025},
5 organization = {Maincode},
6 howpublished = {\url{https://huggingface.co/Maincode/Maincoder-1B}}
7}