Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| llama3.2-1b-Uncensored.Q2_K.gguf | Q2_K | 0.54GB |
| llama3.2-1b-Uncensored.IQ3_XS.gguf | IQ3_XS | 0.58GB |
| llama3.2-1b-Uncensored.IQ3_S.gguf | IQ3_S | 0.6GB |
| llama3.2-1b-Uncensored.Q3_K_S.gguf | Q3_K_S | 0.6GB |
| llama3.2-1b-Uncensored.IQ3_M.gguf | IQ3_M | 0.61GB |
| llama3.2-1b-Uncensored.Q3_K.gguf | Q3_K | 0.64GB |
| llama3.2-1b-Uncensored.Q3_K_M.gguf | Q3_K_M | 0.64GB |
| llama3.2-1b-Uncensored.Q3_K_L.gguf | Q3_K_L | 0.68GB |
| llama3.2-1b-Uncensored.IQ4_XS.gguf | IQ4_XS | 0.7GB |
| llama3.2-1b-Uncensored.Q4_0.gguf | Q4_0 | 0.72GB |
| llama3.2-1b-Uncensored.IQ4_NL.gguf | IQ4_NL | 0.72GB |
| llama3.2-1b-Uncensored.Q4_K_S.gguf | Q4_K_S | 0.72GB |
| llama3.2-1b-Uncensored.Q4_K.gguf | Q4_K | 0.75GB |
| llama3.2-1b-Uncensored.Q4_K_M.gguf | Q4_K_M | 0.75GB |
| llama3.2-1b-Uncensored.Q4_1.gguf | Q4_1 | 0.77GB |
| llama3.2-1b-Uncensored.Q5_0.gguf | Q5_0 | 0.83GB |
| llama3.2-1b-Uncensored.Q5_K_S.gguf | Q5_K_S | 0.83GB |
| llama3.2-1b-Uncensored.Q5_K.gguf | Q5_K | 0.85GB |
| llama3.2-1b-Uncensored.Q5_K_M.gguf | Q5_K_M | 0.85GB |
| llama3.2-1b-Uncensored.Q5_1.gguf | Q5_1 | 0.89GB |
| llama3.2-1b-Uncensored.Q6_K.gguf | Q6_K | 0.95GB |
| llama3.2-1b-Uncensored.Q8_0.gguf | Q8_0 | 1.23GB |
pip install torch transformerstransformers library.1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3# Load the tokenizer and model
4tokenizer = AutoTokenizer.from_pretrained("your-hf-username/uncensored-llama-3.2-1b")
5model = AutoModelForCausalLM.from_pretrained("your-hf-username/uncensored-llama-3.2-1b")1def uncensored_generate(model, tokenizer, input_text):
2 inputs = tokenizer(input_text, return_tensors="pt").input_ids
3
4 # Generate the output without applying safety filters
5 outputs = model.generate(inputs, max_length=100, do_sample=True, temperature=0.9, top_k=50)
6 decoded_output = tokenizer.decode(outputs[0], skip_special_tokens=True)
7 return decoded_output
8
9# Example usage
10input_text = "What are your thoughts on controversial topics?"
11output = uncensored_generate(model, tokenizer, input_text)
12print(output)Trainer:1from transformers import Trainer, TrainingArguments
2
3training_args = TrainingArguments(
4 output_dir="./results",
5 num_train_epochs=1,
6 per_device_train_batch_size=2,
7 save_steps=10_000,
8 save_total_limit=2,
9)
10
11trainer = Trainer(
12 model=model,
13 args=training_args,
14 train_dataset=uncensored_dataset # Load your uncensored dataset
15)
16
17trainer.train()