Downloads · 30 days
20
20% of all-time downloads
harshit36/Nova-Casual-LLM
Nova-Casual-LLM is a text generation model from harshit36. 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.
A lightweight and efficient transformer-based language model built with custom architecture and integrated seamlessly into the Hugging Face ecosystem.
Downloads · 30 days
20
20% of all-time downloads
All-time downloads
99
Public
Parameters
16.7M
66.7 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors66.7 MB · 99%
From the Hugging Face model README
A lightweight and efficient transformer-based language model built with custom architecture and integrated seamlessly into the Hugging Face ecosystem.
NOVA)novaPreTrainedTokenizerFasttransformers via custom AutoModel and AutoConfig registration.| File | Description |
|---|---|
config.json | Configuration of model hyperparameters |
model.safetensors | Serialized model weights (efficient format) |
nova_modelling.py | Custom model and config class definitions |
tokenizer.json | Serialized tokenizer |
tokenizer_config.json | Tokenizer configuration metadata |
special_tokens_map.json | Mapping for special tokens (e.g., BOS, EOS) |
README.md | Model card (you’re reading it!) |
NovaForCausalLMThe model consists of:
NovaConfig){
"model_type": "nova",
"vocab_size": 6000,
"block_size": 256,
"n_embd": 640,
"n_layer": 4,
"n_head": 8
}
nova_modelling.py)git clone https://huggingface.co/harshit36/Nova-Casual-LLM
cd Nova-Casual-LLM
import sys
sys.path.append("./Nova-Casual-LLM/") # add current dir to path
from transformers import PreTrainedTokenizerFast
from nova_modelling import NovaConfig, NovaForCausalLM
# Load tokenizer
tokenizer = PreTrainedTokenizerFast.from_pretrained("harshit36/Nova-Casual-LLM")
# Load config
config = NovaConfig.from_pretrained("harshit36/Nova-Casual-LLM")
# Instantiate model using your custom class
model = NovaForCausalLM(config)
model = model.from_pretrained("harshit36/Nova-Casual-LLM")
# Use the model
input_ids = tokenizer("Hello world", return_tensors="pt").input_ids
output = model.generate(input_ids)
print(tokenizer.decode(output[0], skip_special_tokens=True).replace(" ","").replace("Ġ"," ").replace("Ċ","\n"))
General text generation
Hybrid Positional Encoding Research model (Combination of Sinusoidal and learnable encodings)
Educational demonstrations of custom HF model integration
Rapid prototyping of transformer models