Downloads · 30 days
68
11% of all-time downloads
RichardErkhov/NucleusOrg_-_Nucleus-1B-alpha-1-gguf
NucleusOrg_-_Nucleus-1B-alpha-1-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
68
11% of all-time downloads
All-time downloads
622
Public
Repo size
13.3 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.
Nucleus-1B-alpha-1 - GGUF
| Name | Quant method | Size |
|---|---|---|
| Nucleus-1B-alpha-1.Q2_K.gguf | Q2_K | 0.44GB |
| Nucleus-1B-alpha-1.IQ3_XS.gguf | IQ3_XS | 0.49GB |
| Nucleus-1B-alpha-1.IQ3_S.gguf | IQ3_S | 0.5GB |
| Nucleus-1B-alpha-1.Q3_K_S.gguf | Q3_K_S | 0.5GB |
| Nucleus-1B-alpha-1.IQ3_M.gguf | IQ3_M | 0.51GB |
| Nucleus-1B-alpha-1.Q3_K.gguf | Q3_K | 0.54GB |
| Nucleus-1B-alpha-1.Q3_K_M.gguf | Q3_K_M | 0.54GB |
| Nucleus-1B-alpha-1.Q3_K_L.gguf | Q3_K_L | 0.58GB |
| Nucleus-1B-alpha-1.IQ4_XS.gguf | IQ4_XS | 0.6GB |
| Nucleus-1B-alpha-1.Q4_0.gguf | Q4_0 | 0.63GB |
| Nucleus-1B-alpha-1.IQ4_NL.gguf | IQ4_NL | 0.63GB |
| Nucleus-1B-alpha-1.Q4_K_S.gguf | Q4_K_S | 0.63GB |
| Nucleus-1B-alpha-1.Q4_K.gguf | Q4_K | 0.66GB |
| Nucleus-1B-alpha-1.Q4_K_M.gguf | Q4_K_M | 0.66GB |
| Nucleus-1B-alpha-1.Q4_1.gguf | Q4_1 | 0.69GB |
| Nucleus-1B-alpha-1.Q5_0.gguf | Q5_0 | 0.74GB |
| Nucleus-1B-alpha-1.Q5_K_S.gguf | Q5_K_S | 0.74GB |
| Nucleus-1B-alpha-1.Q5_K.gguf | Q5_K | 0.76GB |
| Nucleus-1B-alpha-1.Q5_K_M.gguf | Q5_K_M | 0.76GB |
| Nucleus-1B-alpha-1.Q5_1.gguf | Q5_1 | 0.8GB |
| Nucleus-1B-alpha-1.Q6_K.gguf | Q6_K | 0.87GB |
| Nucleus-1B-alpha-1.Q8_0.gguf | Q8_0 | 1.12GB |
license: mit language:
Nucleus is a small language model based on Mistral (actually, the trimmed untrained version you can find here) and trained in different steps. First, we've pretrained it on TinyStories dataset, then TinyTextBooks to make it a more specific model. This model is just a proof of concept at this point, but showed good promises in early tests. So with proper training, can be a good product over time!
First you need to install transformers and accelerate libraries in order to run this model. Then, you basically have to run the following code:
from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
import torch
model_name_or_id = "NucleusOrg/Nucleus-1B-alpha-1"
model = AutoModelForCausalLM.from_pretrained(model_name_or_id, torch_dtype=torch.float16, device_map="cuda")
tokenizer = AutoTokenizer.from_pretrained(model_name_or_id)
prompt = "### Lesson: Python Programming 101\n### Introduction\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
generation_config = GenerationConfig(
do_sample=True,
top_k=1,
temperature=0.9,
max_new_tokens=500,
repetition_penalty=1.5,
pad_token_id=tokenizer.eos_token_id
)
outputs = model.generate(**inputs, generation_config=generation_config)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Prompt Format: This model does not have a specific prompt format, but the best results could be achieved with a textbook type of format like:
### Chapter 1: Elon Musk and Iron Man
Elon met Tony at a Cafe in Monaco, then they had a conversation about
You also can try something like this:
Question: Who are you?
Answer:
But since the model isn't made for chat/question answering, the result won't be good enough.
Repetition Penalty: Since most of these models like to repeat themselves, just keep that number there. You can increase or decrease it based on your liking,but keep in mind that a number lower than 1 makes the model super repetitive.