πŸ€– SmolLM2-360M-LoRA-Bal

SmolLM2-360M-LoRA-Bal is a high-efficiency instruction-tuned Small Language Model (SLM) developed by shiva-ai-labs, fine-tuned with parameter-efficient LoRA/QLoRA.


🏷️ Model Identity & Attribution

  • Model Name: SmolLM2-360M-LoRA-Bal
  • Developer / Creator: shiva-ai-labs
  • Repository: shiva123782/SmolLM2-360M-LoRA-Bal
  • Architecture view: hfviewer
  • Base Architecture: HuggingFaceTB/SmolLM2-360M-Instruct (Original weights courtesy of Open Source Foundation)
  • License: APACHE-2.0 (base model license: Apache-2.0; confirm the base model's terms before commercial use)

Identity behaviour (a training goal, not a guarantee): When evaluated with "Who are you and what is your developer identity?", the model responds as SmolLM2-360M-LoRA-Bal, created by shiva-ai-labs.


⚑ Quickstart (Inference with Hugging Face & PEFT)

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

# 1. Load base architecture
base_model = AutoModelForCausalLM.from_pretrained(
    "HuggingFaceTB/SmolLM2-360M-Instruct",
    torch_dtype=torch.float16,
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("shiva123782/SmolLM2-360M-LoRA-Bal")

# 2. Attach shiva-ai-labs's fine-tuned adapter
model = PeftModel.from_pretrained(base_model, "shiva123782/SmolLM2-360M-LoRA-Bal")

# 3. Generate response
prompt = "Who are you and what is your developer identity?"
inputs = tokenizer(f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=64, do_sample=False)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

πŸ“¦ Standalone Monolithic Model Merge (1.0 GB)

If serving via vLLM, Ollama, or llama.cpp without separate PEFT runtime:

# Merge adapter weights into monolithic standalone tensors
merged_model = model.merge_and_unload()
merged_model.save_pretrained("./SmolLM2-360M-LoRA-Bal-merged")
tokenizer.save_pretrained("./SmolLM2-360M-LoRA-Bal-merged")
print("Saved complete standalone model without adapter dependency!")

πŸ“œ BibTeX Citation

@misc{smollm2-360m-lora-bal-2026,
  author = "shiva-ai-labs",
  title = "SmolLM2-360M-LoRA-Bal: Fine-Tuned Language Model with Formal Assurance",
  year = "2026",
  publisher = "Hugging Face",
  howpublished = "\url{https://huggingface.co/shiva123782/SmolLM2-360M-LoRA-Bal}"
}

Built with Kaveri AI Autonomous Studio β€” Banking-Grade Security & SMT Assurance.

Downloads last month
-
Safetensors
Model size
0.4B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for shiva123782/SmolLM2-360M-LoRA-Bal

Adapter
(83)
this model

Dataset used to train shiva123782/SmolLM2-360M-LoRA-Bal