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 "LoneStriker/HamSter-0.2-3.0bpw-h6-exl2" \
    --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": "LoneStriker/HamSter-0.2-3.0bpw-h6-exl2",
		"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 "LoneStriker/HamSter-0.2-3.0bpw-h6-exl2" \
        --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": "LoneStriker/HamSter-0.2-3.0bpw-h6-exl2",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

HamSter v0.2

A Uncensored fine tune model roleplay focused of mistralai/Mistral-7B-v0.2... With the help of my team.

  • For good performance i recommend you to use a detailled character card! Check out Chub.ai (There might be nsfw content on the homepage) for some premade character card
  • Uses Mistral prompt template with chat-instruct.`
  • It has been fine tune with a newer dataset :)
  • Next one will be better!

I had good results with this parameters:

  • temperature: 0.27
  • top_p: 0.95
  • min_p: 0.05
  • top_k: 30
  • repetition_penalty: 1.185

Have Fun :)

Downloads last month
6
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support