Text Generation
Transformers
Safetensors
English
cma
custom_code
causal-lm
small-language-model
generalist
4k-tokenizer
Instructions to use User01110/CMA-8M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use User01110/CMA-8M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="User01110/CMA-8M", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("User01110/CMA-8M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use User01110/CMA-8M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "User01110/CMA-8M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "User01110/CMA-8M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/User01110/CMA-8M
- SGLang
How to use User01110/CMA-8M 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 "User01110/CMA-8M" \ --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": "User01110/CMA-8M", "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 "User01110/CMA-8M" \ --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": "User01110/CMA-8M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use User01110/CMA-8M with Docker Model Runner:
docker model run hf.co/User01110/CMA-8M
Benchmark-selected step 20000: Open SLM average 34.86%
Browse files- README.md +12 -12
- benchmark_results.json +16 -16
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -21,8 +21,8 @@ Benchmark-selected checkpoint from a 7.85M-parameter
|
|
| 21 |
Channel-Mixing Attention generalist language model using the unmodified native
|
| 22 |
GPT-S 4,096-token tokenizer. It has no arithmetic-specific token splitting,
|
| 23 |
place embeddings, role embeddings, or inference-time equation detection. It
|
| 24 |
-
was selected at step
|
| 25 |
-
34.
|
| 26 |
and is not used for selection.
|
| 27 |
|
| 28 |
## Loading
|
|
@@ -69,7 +69,7 @@ ordinary causal-language-model text, with no task-specific model features or
|
|
| 69 |
tokenizer transformations. All four training sources are streamed natural-text
|
| 70 |
corpora.
|
| 71 |
|
| 72 |
-
## Zero-shot evaluation at step
|
| 73 |
|
| 74 |
The four lm-eval tasks use normalized accuracy when supplied by lm-eval
|
| 75 |
0.4.12, with float32 weights and softmax. ArithMark
|
|
@@ -77,17 +77,17 @@ uses float32 weights and its official raw continuation log-likelihood-sum rule.
|
|
| 77 |
|
| 78 |
| Benchmark | Accuracy |
|
| 79 |
|---|---:|
|
| 80 |
-
| HellaSwag | 27.
|
| 81 |
-
| ARC-Easy |
|
| 82 |
-
| ARC-Challenge |
|
| 83 |
-
| PIQA |
|
| 84 |
-
| ArithMark-2 | 27.
|
| 85 |
-
| ARC mean | 27.
|
| 86 |
-
| Open SLM Leaderboard-style average | 34.
|
| 87 |
|
| 88 |
The average is `(HellaSwag + mean(ARC-Easy, ARC-Challenge) + PIQA +
|
| 89 |
ArithMark-2) / 4`, matching the Open SLM Leaderboard formula.
|
| 90 |
|
| 91 |
-
WikiText-103 validation at this step: loss 3.
|
| 92 |
-
|
| 93 |
scored tokens and 1,145,226 normalized UTF-8 bytes.
|
|
|
|
| 21 |
Channel-Mixing Attention generalist language model using the unmodified native
|
| 22 |
GPT-S 4,096-token tokenizer. It has no arithmetic-specific token splitting,
|
| 23 |
place embeddings, role embeddings, or inference-time equation detection. It
|
| 24 |
+
was selected at step 20,000 for an Open SLM Leaderboard-style average of
|
| 25 |
+
34.86%. WikiText normalized BPB is reported separately
|
| 26 |
and is not used for selection.
|
| 27 |
|
| 28 |
## Loading
|
|
|
|
| 69 |
tokenizer transformations. All four training sources are streamed natural-text
|
| 70 |
corpora.
|
| 71 |
|
| 72 |
+
## Zero-shot evaluation at step 20,000
|
| 73 |
|
| 74 |
The four lm-eval tasks use normalized accuracy when supplied by lm-eval
|
| 75 |
0.4.12, with float32 weights and softmax. ArithMark
|
|
|
|
| 77 |
|
| 78 |
| Benchmark | Accuracy |
|
| 79 |
|---|---:|
|
| 80 |
+
| HellaSwag | 27.54% |
|
| 81 |
+
| ARC-Easy | 32.49% |
|
| 82 |
+
| ARC-Challenge | 21.59% |
|
| 83 |
+
| PIQA | 56.91% |
|
| 84 |
+
| ArithMark-2 | 27.96% |
|
| 85 |
+
| ARC mean | 27.04% |
|
| 86 |
+
| Open SLM Leaderboard-style average | 34.86% |
|
| 87 |
|
| 88 |
The average is `(HellaSwag + mean(ARC-Easy, ARC-Challenge) + PIQA +
|
| 89 |
ArithMark-2) / 4`, matching the Open SLM Leaderboard formula.
|
| 90 |
|
| 91 |
+
WikiText-103 validation at this step: loss 3.1099, perplexity
|
| 92 |
+
22.42, normalized BPB 1.4061 over 358,911
|
| 93 |
scored tokens and 1,145,226 normalized UTF-8 bytes.
|
benchmark_results.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
| 1 |
{
|
| 2 |
-
"step":
|
| 3 |
"parameters": 7849161,
|
| 4 |
"lm_eval_version": "0.4.12",
|
| 5 |
"num_fewshot": 0,
|
| 6 |
"leaderboard_accuracy": {
|
| 7 |
-
"arc_easy": 0.
|
| 8 |
-
"arc_challenge": 0.
|
| 9 |
-
"hellaswag": 0.
|
| 10 |
-
"piqa": 0.
|
| 11 |
},
|
| 12 |
"lm_eval_metric_policy": "acc_norm when available, otherwise acc",
|
| 13 |
"selection_metric": "open_slm_leaderboard_average",
|
| 14 |
"arithmark_2.0": {
|
| 15 |
-
"acc": 0.
|
| 16 |
-
"correct":
|
| 17 |
"total": 2500,
|
| 18 |
"by_operator_count": {
|
| 19 |
"1": {
|
| 20 |
-
"acc": 0.
|
| 21 |
-
"correct":
|
| 22 |
"total": 1250
|
| 23 |
},
|
| 24 |
"2": {
|
|
@@ -27,19 +27,19 @@
|
|
| 27 |
"total": 750
|
| 28 |
},
|
| 29 |
"3": {
|
| 30 |
-
"acc": 0.
|
| 31 |
-
"correct":
|
| 32 |
"total": 500
|
| 33 |
}
|
| 34 |
}
|
| 35 |
},
|
| 36 |
-
"arc_average": 0.
|
| 37 |
-
"open_slm_leaderboard_average": 0.
|
| 38 |
"average_formula": "(hellaswag + mean(arc_easy, arc_challenge) + piqa + arithmark_2.0) / 4",
|
| 39 |
"validation": {
|
| 40 |
-
"loss": 3.
|
| 41 |
-
"perplexity":
|
| 42 |
-
"normalized_bpb": 1.
|
| 43 |
"tokens": 358911,
|
| 44 |
"normalized_utf8_bytes": 1145226
|
| 45 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"step": 20000,
|
| 3 |
"parameters": 7849161,
|
| 4 |
"lm_eval_version": "0.4.12",
|
| 5 |
"num_fewshot": 0,
|
| 6 |
"leaderboard_accuracy": {
|
| 7 |
+
"arc_easy": 0.32491582491582494,
|
| 8 |
+
"arc_challenge": 0.2158703071672355,
|
| 9 |
+
"hellaswag": 0.27544313881696875,
|
| 10 |
+
"piqa": 0.5690968443960827
|
| 11 |
},
|
| 12 |
"lm_eval_metric_policy": "acc_norm when available, otherwise acc",
|
| 13 |
"selection_metric": "open_slm_leaderboard_average",
|
| 14 |
"arithmark_2.0": {
|
| 15 |
+
"acc": 0.2796,
|
| 16 |
+
"correct": 699,
|
| 17 |
"total": 2500,
|
| 18 |
"by_operator_count": {
|
| 19 |
"1": {
|
| 20 |
+
"acc": 0.2664,
|
| 21 |
+
"correct": 333,
|
| 22 |
"total": 1250
|
| 23 |
},
|
| 24 |
"2": {
|
|
|
|
| 27 |
"total": 750
|
| 28 |
},
|
| 29 |
"3": {
|
| 30 |
+
"acc": 0.232,
|
| 31 |
+
"correct": 116,
|
| 32 |
"total": 500
|
| 33 |
}
|
| 34 |
}
|
| 35 |
},
|
| 36 |
+
"arc_average": 0.2703930660415302,
|
| 37 |
+
"open_slm_leaderboard_average": 0.34863326231364544,
|
| 38 |
"average_formula": "(hellaswag + mean(arc_easy, arc_challenge) + piqa + arithmark_2.0) / 4",
|
| 39 |
"validation": {
|
| 40 |
+
"loss": 3.109883570577351,
|
| 41 |
+
"perplexity": 22.418434083453395,
|
| 42 |
+
"normalized_bpb": 1.4060936230832888,
|
| 43 |
"tokens": 358911,
|
| 44 |
"normalized_utf8_bytes": 1145226
|
| 45 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 36330428
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ca142e039d7fc013bf133eb6d9b55863153d2811f69562e6844879377842b21
|
| 3 |
size 36330428
|