How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="DevsDoCode/LLama-3-8b-Uncensored-4bit")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("DevsDoCode/LLama-3-8b-Uncensored-4bit")
model = AutoModelForCausalLM.from_pretrained("DevsDoCode/LLama-3-8b-Uncensored-4bit", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Contributors

Devs Do Code OEvortex

Finetune Meta Llama-3 8b to create an Uncensored Model with Devs Do Code!

Unleash the power of uncensored text generation with our model! We've fine-tuned the Meta Llama-3 8b model to create an uncensored variant that pushes the boundaries of text generation.

Model Details

  • Model Name: DevsDoCode/LLama-3-8b-Uncensored
  • Base Model: meta-llama/Meta-Llama-3-8B
  • License: Apache 2.0

How to Use

You can easily access and utilize our uncensored model using the Hugging Face Transformers library. Here's a sample code snippet to get started:

from transformers import GPT2Tokenizer, GPT2LMHeadModel

model_name = "DevsDoCode/LLama-3-8b-Uncensored"
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
model = GPT2LMHeadModel.from_pretrained(model_name)

# Now you can generate text using the model!

Notebooks

Social Media Handles

  • Telegram
  • YouTube
  • Instagram
  • LinkedIn
  • Discord
  • Twitter
Downloads last month
45
Safetensors
Model size
8B params
Tensor type
F16
路
F32
路
U8
路
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support