Downloads · 30 days
18
21% of all-time downloads
Akash-nath29/tinyllamashakespeare
tinyllamashakespeare is a text generation model from Akash-nath29. 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 conversational AI that speaks in authentic Shakespearean English.
Downloads · 30 days
18
21% of all-time downloads
All-time downloads
87
Public
Parameters
1.1B
4.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 99%
From the Hugging Face model README
A conversational AI that speaks in authentic Shakespearean English.
Fine-tuned on Shakespeare's complete works (42,000+ lines) transformed into 8,000+ chat-style training examples.
Capabilities:
This is a MERGED model - works directly with transformers, no PEFT needed!
`python from transformers import AutoModelForCausalLM, AutoTokenizer import torch
model = AutoModelForCausalLM.from_pretrained( "Akash-nath29/tinyllamashakespeare", torch_dtype=torch.float16, device_map="auto" ) tokenizer = AutoTokenizer.from_pretrained("Akash-nath29/tinyllamashakespeare")
inputs = tokenizer("To be or not to be", return_tensors="pt") outputs = model.generate(**inputs, max_length=200) print(tokenizer.decode(outputs[0])) `
| Parameter | Value |
|---|---|
| Base Model | TinyLlama-1.1B-Chat-v1.0 |
| Method | LoRA + QLoRA (4-bit) |
| LoRA Rank | 16 |
| LoRA Alpha | 32 |
| Target Modules | q_proj, k_proj, v_proj, o_proj |
| Training Examples | 8,000+ conversations |
| Max Length | 512 tokens |
| Epochs | 3 |
MIT License