File size: 1,439 Bytes
115da02 5a06de4 115da02 5a06de4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | ---
license: apache-2.0
base_model: HuggingFaceTB/SmolLM2-135M-Instruct
tags:
- code
- python
- bash
- fine-tuned
- cluster
pipeline_tag: text-generation
language:
- en
- hi
---
# 🚀 Cluster (135M) - Developed by Saish
**Cluster** is a lightweight, fine-tuned instruction model based on `SmolLM2-135M-Instruct`, specialized for **Python coding**, **Bash shell scripting**, and automated workflows.
Developed & fine-tuned by **Saish**.
## 🧠 Model Details
- **Architecture:** Transformer (SmolLM2-135M)
- **Developer:** Saish
- **Specialization:** Python programming, Bash commands, Linux utilities, identity alignment
- **Parameters:** ~135M
## 💻 Quickstart (Transformers)
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "SaishNotFound/cluster"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
messages = [
{"role": "user", "content": "Tum kaun ho bhai?"}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=150, temperature=0.3)
print(tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True))
```
## 🛠️ Training Setup
- Full parameter fine-tuning on a Tesla T4 GPU using Hugging Face TRL & PyTorch.
|