llama2-uncensored-7b

MAX Model

1 versions

Uncensored Llama 2 model by George Sung and Jarrad Hope.

Run this model

  1. Install our magic package manager:

    curl -ssL https://magic.modular.com/ | bash

    Then run the source command that's printed in your terminal.

  2. Install Max Pipelines in order to run this model.

    magic global install max-pipelines
  3. Start a local endpoint for llama2-uncensored/7b:

    max-serve serve --huggingface-repo-id TheBloke/Luna-AI-Llama2-Uncensored-AWQ

    The endpoint is ready when you see the URI printed in your terminal:

    Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
  4. Now open another terminal to send a request using curl:

    curl -N http://0.0.0.0:8000/v1/chat/completions -H "Content-Type: application/json" -d '{
        "model": "llama2-uncensored/7b",
        "stream": true,
        "messages": [
            {"role": "system", "content": "You are a helpful assistant."},
            {"role": "user", "content": "Who won the World Series in 2020?"}
        ]
    }' | grep -o '"content":"[^"]*"' | sed 's/"content":"//g' | sed 's/"//g' | tr -d '
    ' | sed 's/\n/
    /g'
  5. 🎉 Hooray! You’re running Generative AI. Our goal is to make this as easy as possible.

About

Llama 2 Uncensored is a derivative of Meta's Llama 2 model, created by George Sung and Jarrad Hope following the method outlined by Eric Hartford in his blog post.

Memory Requirements

  • 7B models require a minimum of 8GB of RAM.
  • 70B models require a minimum of 64GB of RAM.

References

DETAILS

MODEL CLASS
MAX Model

MAX Models are extremely optimized inference pipelines to run SOTA performance for that model on both CPU and GPU. For many of these models, they are the fastest version of this model in the world.

Browse 18+ MAX Models

MODULAR GITHUB

Modular

CREATED BY

TheBloke

MODEL

TheBloke/Luna-AI-Llama2-Uncensored-AWQ

TAGS

4-bit
autotrain_compatible
awq
base_model:Tap-M/Luna-AI-Llama2-Uncensored
base_model:quantized:Tap-M/Luna-AI-Llama2-Uncensored
license:cc-by-sa-4.0
llama
region:us
safetensors
text-generation
text-generation-inference
transformers

@ Copyright - Modular Inc - 2024