⚑ SmolLM-135M-Instruct Deployed Model

This repository contains the SmolLM-135M-Instruct lightweight LLM (~135M parameters, ~250MB weight files), deployed on Hugging Face Hub by abersbail.

πŸ“Š Model Summary

  • Model Name: SmolLM-135M-Instruct
  • Parameters: 135 Million (~100MB-class ultra-compact LLM)
  • Architecture: LlamaForCausalLM / SmolLM
  • Context Window: 2048 tokens
  • License: Apache 2.0

πŸš€ Usage Guide

1. Python transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "abersbail/smollm-135m-instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

messages = [{"role": "user", "content": "What is artificial intelligence?"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(inputs, max_new_tokens=100, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

2. cURL (Hugging Face Serverless Inference API)

curl https://api-inference.huggingface.co/models/abersbail/smollm-135m-instruct   -X POST   -H "Authorization: Bearer hf_..."   -H "Content-Type: application/json"   -d '{"inputs": "Hello! Tell me a fun fact."}'
Downloads last month
22
Safetensors
Model size
0.1B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for abersbail/smollm-135m-instruct

Quantized
(33)
this model

Space using abersbail/smollm-135m-instruct 1