Downloads · 30 days
15
4% of all-time downloads
sihab/slm-1.0
slm-1.0 is a text generation model from sihab. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
SLM 1.0 is a specialized language model trained by NeuroBrain, optimized for structured output generation, JSON schema compliance, and tool calling capabilities.
Downloads · 30 days
15
4% of all-time downloads
All-time downloads
421
Public
Parameters
1.5B
3.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors3.1 GB · 99%
From the Hugging Face model README
SLM 1.0 is a specialized language model trained by NeuroBrain, optimized for structured output generation, JSON schema compliance, and tool calling capabilities.
SLM 1.0 is a language model specifically trained to excel at:
Structured Output: Generating well-formatted, structured responses
JSON Schema: Producing outputs that strictly adhere to JSON schemas
Tool Calling: Effectively utilizing and calling external tools and functions
This model has been trained by NeuroBrain to provide reliable, structured responses suitable for production applications requiring precise output formatting.
Architecture: SLM1ForCausalLM
Model Type: Causal Language Model
Context Length: 32,768 tokens
Hidden Size: 1,536
Number of Layers: 28
Attention Heads: 12
Vocabulary Size: 151,936
Trained by: NeuroBrain
Training Method: Trained for structured output, JSON schema compliance, and tool calling
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "sihab/slm-1.0"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example: Generate structured output
prompt = "Generate a JSON object with user information"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=512)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
SLM 1.0 is particularly effective when you need structured outputs:
prompt = """
Generate a JSON object following this schema:
{
"name": "string",
"age": "number",
"email": "string"
}
"""
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=512, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
The model is optimized for tool calling scenarios:
prompt = """
Available tools:
- get_weather(location: str)
- send_email(to: str, subject: str, body: str)
User request: Check the weather in Paris and send me an email with the result.
"""
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=1024)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
SLM 1.0 demonstrates strong performance in:
JSON schema compliance
Structured data generation
Tool calling accuracy
Function parameter extraction
The model may occasionally require post-processing to ensure strict JSON compliance
Tool calling accuracy depends on the clarity of tool descriptions provided
Maximum context length is 32,768 tokens
If you use SLM 1.0 in your research or applications, please cite:
@misc{slm1.0,
title={SLM 1.0: A Language Model for Structured Output and Tool Calling},
author={NeuroBrain},
year={2025},
howpublished={\url{https://huggingface.co/sihab/slm-1.0}}
}
This model is licensed under the Apache 2.0 license.
For questions, issues, or contributions, please contact NeuroBrain.
Model trained by NeuroBrain