Downloads · 30 days
33
8% of all-time downloads
RichardErkhov/sartajbhuvaji_-_OLMo-1B-Base-shakespeare-gguf
sartajbhuvaji_-_OLMo-1B-Base-shakespeare-gguf is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
33
8% of all-time downloads
All-time downloads
429
Public
Repo size
13.1 GB
Likes
0
Public
Click a slice to open those files.
.gguf15.5 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
OLMo-1B-Base-shakespeare - GGUF
| Name | Quant method | Size |
|---|---|---|
| OLMo-1B-Base-shakespeare.Q2_K.gguf | Q2_K | 0.48GB |
| OLMo-1B-Base-shakespeare.Q3_K_S.gguf | Q3_K_S | 0.55GB |
| OLMo-1B-Base-shakespeare.Q3_K.gguf | Q3_K | 0.6GB |
| OLMo-1B-Base-shakespeare.Q3_K_M.gguf | Q3_K_M | 0.6GB |
| OLMo-1B-Base-shakespeare.Q3_K_L.gguf | Q3_K_L | 0.65GB |
| OLMo-1B-Base-shakespeare.IQ4_XS.gguf | IQ4_XS | 0.67GB |
| OLMo-1B-Base-shakespeare.Q4_0.gguf | Q4_0 | 0.7GB |
| OLMo-1B-Base-shakespeare.IQ4_NL.gguf | IQ4_NL | 0.7GB |
| OLMo-1B-Base-shakespeare.Q4_K_S.gguf | Q4_K_S | 0.7GB |
| OLMo-1B-Base-shakespeare.Q4_K.gguf | Q4_K | 0.74GB |
| OLMo-1B-Base-shakespeare.Q4_K_M.gguf | Q4_K_M | 0.74GB |
| OLMo-1B-Base-shakespeare.Q4_1.gguf | Q4_1 | 0.77GB |
| OLMo-1B-Base-shakespeare.Q5_0.gguf | Q5_0 | 0.83GB |
| OLMo-1B-Base-shakespeare.Q5_K_S.gguf | Q5_K_S | 0.83GB |
| OLMo-1B-Base-shakespeare.Q5_K.gguf | Q5_K | 0.85GB |
| OLMo-1B-Base-shakespeare.Q5_K_M.gguf | Q5_K_M | 0.85GB |
| OLMo-1B-Base-shakespeare.Q5_1.gguf | Q5_1 | 0.9GB |
| OLMo-1B-Base-shakespeare.Q6_K.gguf | Q6_K | 0.98GB |
| OLMo-1B-Base-shakespeare.Q8_0.gguf | Q8_0 | 1.27GB |
license: apache-2.0 datasets:
OLMo-1B-Base-Shakespeare is a fine-tuned version of the allenai/OLMo-1B-0724-hf model, retrained on the complete collection of novels by William Shakespeare. The model aims to generate text in the style of Shakespeare's works and has been optimized to capture the linguistic and stylistic nuances present in the original text.
Model Type: Base Model
Base Model: allenai/OLMo-1B-0724-hf
Training Dataset: Works by William Shakespeare
GPU VRAM Requirements: 25 GB
Intended Use Cases:
Ensure you have the transformers library installed:
pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
torch.random.manual_seed(0)
model_name = 'sartajbhuvaji/OLMo-1B-Base-Shakespeare'
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
device_map="cuda",
torch_dtype="auto",
trust_remote_code=True,
)
model.to('cuda')
input_text = 'Hello how are you?'
input_ids = tokenizer.encode(input_text, return_tensors='pt').to('cuda')
output = model.generate(input_ids, max_length=100, num_return_sequences=1, no_repeat_ngram_size=2)
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
print(generated_text)
'''
Hello how are you?
SECOND GENTLEMAN. I am a gentleman.
The Duke, my lord, and all the court are yours.
Enter a MESSENGER
THIRD GENTSLE MAN. Here's a messenger. What news? What's the news,
sir? How doth your lady? Is she well? Or is she
hears'd, beaten, or slain? The news is, sir
'''
