Downloads · 30 days
26
18% of all-time downloads
tsingla98/frawdllm-100m
frawdllm-100m is a text generation model from tsingla98. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
A 109M parameter language model trained from scratch for learning purposes.
Downloads · 30 days
26
18% of all-time downloads
All-time downloads
141
Public
Parameters
311M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 100%
From the Hugging Face model README
A 109M parameter language model trained from scratch for learning purposes.
FrawdLLM is a GPT-style decoder-only transformer trained through the full LLM pipeline:
| Parameter | Value |
|---|---|
| Parameters | 109M |
| Layers | 12 |
| Hidden Size | 768 |
| Attention Heads | 12 |
| Context Length | 1024 |
| Vocab Size | 32,000 |
| Position Encoding | RoPE |
from transformers import AutoModelForCausalLM, PreTrainedTokenizerFast
import torch
# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained(
"tsingla98/frawdllm-100m",
trust_remote_code=True
)
tokenizer = PreTrainedTokenizerFast.from_pretrained("tsingla98/frawdllm-100m")
# Format prompt with chat template
prompt = "<|bos|><|user|>What is photosynthesis?<|assistant|>"
inputs = tokenizer(prompt, return_tensors="pt", add_special_tokens=False)
# Generate
with torch.no_grad():
output = model.model.generate(
inputs.input_ids,
max_new_tokens=150,
temperature=0.8,
top_k=50,
)
response = tokenizer.decode(output[0], skip_special_tokens=False)
print(response)
This is a small model (109M params) trained primarily for learning purposes. It:
This model is intended for:
scripts/ directory in the GitHub repoMIT