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 "stephenlzc/Mistral-7B-v0.3-Chinese-Chat-uncensored" \
    --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": "stephenlzc/Mistral-7B-v0.3-Chinese-Chat-uncensored",
		"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 "stephenlzc/Mistral-7B-v0.3-Chinese-Chat-uncensored" \
        --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": "stephenlzc/Mistral-7B-v0.3-Chinese-Chat-uncensored",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Model Details

Model Description

  • Using shenzhi-wang/Mistral-7B-v0.3-Chinese-Chat as base model, and finetune the dataset as mentioned via unsloth. Makes the model uncensored.

Training Code

  • Open In Colab

Training Procedure Raw Files

  • ALL the procedure are training on Vast.ai

  • Hardware in Vast.ai:

    • GPU: 1x A100 SXM4 80GB

    • CPU: AMD EPYC 7513 32-Core Processor

    • RAM: 129 GB

    • Disk Space To Allocate:>150GB

    • Docker Image: pytorch/pytorch:2.2.0-cuda12.1-cudnn8-devel

    • Download the ipynb file.

Training Data

Usage

from transformers import pipeline

qa_model = pipeline("question-answering", model='stephenlzc/Mistral-7B-v0.3-Chinese-Chat-uncensored')
question = "How to make girlfreind laugh? please answer in Chinese."
qa_model(question = question)

Downloads last month
1,660
Safetensors
Model size
7B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for stephenlzc/Mistral-7B-v0.3-Chinese-Chat-uncensored

Quantized
(4)
this model
Merges
1 model
Quantizations
1 model

Datasets used to train stephenlzc/Mistral-7B-v0.3-Chinese-Chat-uncensored