How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "DevsDoCode/LLama-3-8b-Uncensored-4bit" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "DevsDoCode/LLama-3-8b-Uncensored-4bit",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "DevsDoCode/LLama-3-8b-Uncensored-4bit" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "DevsDoCode/LLama-3-8b-Uncensored-4bit",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
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
10
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