LLMs
Collection
4 items โข Updated โข 2
NanoLLM-105M is a custom, ultra-lightweight Large Language Model (LLM) trained entirely from scratch. Rather than fine-tuning an existing foundation model, this project was built to demonstrate a deep understanding of core Transformer architectures and full pre-training pipelines.
This specific variant (llama-arc-base) utilizes the highly efficient structural design of the Llama model family, scaled down to 105 million parameters for rapid iteration, educational research, and edge-device compatibility.
Because this model is built on standard architectures, it is fully compatible with the Hugging Face transformers ecosystem. You can load and run inference with just a few lines of code:
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "harsh8001/NanoLLM-105M-llama-arc-base"
# Load the Tokenizer and Model
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
# Prepare input
prompt = "The future of artificial intelligence is"
inputs = tokenizer(prompt, return_tensors="pt")
# Generate text
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))