language:
Flare is a highly efficient small language model developed by SurjoLabs, demonstrating that this custom XSA recurrent architecture is viable and can yield exceptional reasoning capabilities in tiny architectures.
Flare is built to prove that unique recurrent architectures can match or beat standard transformers even at small scales.
Evaluated at checkpoint-24999.
| Benchmark | Score (acc_norm) |
|---|---|
| HellaSwag | 39.43% |
| ARC-Easy | 51.14% |
| ARC-Challenge | 26.88% |
| PIQA | 65.94% |
| ArithMark-3 | 39.20% |
| Intelligence Index | 22.50 |
We used the Language Model Evaluation Harness for HellaSwag, ARC-Easy, ARC-Challenge, and PIQA (0-shot).
We used the provided script for ArithMark-3.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "SurjoLabs/Flare"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype=torch.bfloat16
).cuda()
prompt = "The capital of France is"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=20)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
We would like to thank AxiomicLabs for proving that XSA architecture is excellent for token efficiency.
This is an early test of the larger Surjo Project. The code is not very stable and we do not recommend using the modeling file without doing edits for training your own model.
checkpoint-1000/model.safetensors 522 MBcheckpoint-10000/model.safetensors 522 MBcheckpoint-11000/model.safetensors 522 MBcheckpoint-12000/model.safetensors 522 MBcheckpoint-13000/model.safetensors 522 MBcheckpoint-14000/model.safetensors 522 MBcheckpoint-15000/model.safetensors 522 MBcheckpoint-16000/model.safetensors 522 MBcheckpoint-17000/model.safetensors 522 MBcheckpoint-18000/model.safetensors 522 MBcheckpoint-19000/model.safetensors 522 MBcheckpoint-2000/model.safetensors 522 MBcheckpoint-20000/model.safetensors 522 MBcheckpoint-21000/model.safetensors 522 MBcheckpoint-22000/model.safetensors 522 MBcheckpoint-23000/model.safetensors 522 MBcheckpoint-24000/model.safetensors 522 MBcheckpoint-24999/model.safetensors 522 MBcheckpoint-3000/model.safetensors 522 MBcheckpoint-4000/model.safetensors 522 MBcheckpoint-5000/model.safetensors 522 MBcheckpoint-6000/model.safetensors 522 MBcheckpoint-7000/model.safetensors 522 MBcheckpoint-8000/model.safetensors 522 MBcheckpoint-9000/model.safetensors 522 MBmodel.safetensors 522 MBcheckpoint-1000/optimizer.bin 446 MBcheckpoint-10000/optimizer.bin 446 MBcheckpoint-11000/optimizer.bin 446 MBcheckpoint-12000/optimizer.bin 446 MBcheckpoint-13000/optimizer.bin 446 MBcheckpoint-14000/optimizer.bin 446 MBcheckpoint-15000/optimizer.bin 446 MBcheckpoint-16000/optimizer.bin 446 MBcheckpoint-17000/optimizer.bin 446 MBcheckpoint-18000/optimizer.bin 446 MBcheckpoint-19000/optimizer.bin 446 MBcheckpoint-2000/optimizer.bin 446 MBcheckpoint-20000/optimizer.bin 446 MBcheckpoint-21000/optimizer.bin 446 MBcheckpoint-22000/optimizer.bin 446 MBcheckpoint-23000/optimizer.bin 446 MBcheckpoint-24000/optimizer.bin 446 MBcheckpoint-24999/optimizer.bin 446 MBcheckpoint-3000/optimizer.bin 446 MBcheckpoint-4000/optimizer.bin 446 MBcheckpoint-5000/optimizer.bin 446 MBcheckpoint-6000/optimizer.bin 446 MBcheckpoint-7000/optimizer.bin 446 MBcheckpoint-8000/optimizer.bin 446 MBcheckpoint-9000/optimizer.bin 446 MBoptimizer.bin 446 MBcheckpoint-1000/optimizer_1.bin 151 MBcheckpoint-10000/optimizer_1.bin 151 MBcheckpoint-11000/optimizer_1.bin 151 MBcheckpoint-12000/optimizer_1.bin 151 MBcheckpoint-13000/optimizer_1.bin 151 MBcheckpoint-14000/optimizer_1.bin 151 MBcheckpoint-15000/optimizer_1.bin 151 MBcheckpoint-16000/optimizer_1.bin 151 MBcheckpoint-17000/optimizer_1.bin 151 MBcheckpoint-18000/optimizer_1.bin 151 MBcheckpoint-19000/optimizer_1.bin 151 MBcheckpoint-2000/optimizer_1.bin 151 MBcheckpoint-20000/optimizer_1.bin 151 MBcheckpoint-21000/optimizer_1.bin 151 MBcheckpoint-22000/optimizer_1.bin 151 MBcheckpoint-23000/optimizer_1.bin 151 MBcheckpoint-24000/optimizer_1.bin 151 MBcheckpoint-24999/optimizer_1.bin 151 MBcheckpoint-3000/optimizer_1.bin 151 MBcheckpoint-4000/optimizer_1.bin 151 MBcheckpoint-5000/optimizer_1.bin 151 MBcheckpoint-6000/optimizer_1.bin 151 MBcheckpoint-7000/optimizer_1.bin 151 MBcheckpoint-8000/optimizer_1.bin 151 MBcheckpoint-9000/optimizer_1.bin 151 MBoptimizer_1.bin 151 MB