OEvortex/uncensored-vortex
Viewer • Updated • 8.55M • 1.64k • 9
How to use UnfilteredAI/Mia-001 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="UnfilteredAI/Mia-001") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("UnfilteredAI/Mia-001")
model = AutoModelForCausalLM.from_pretrained("UnfilteredAI/Mia-001")How to use UnfilteredAI/Mia-001 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "UnfilteredAI/Mia-001"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "UnfilteredAI/Mia-001",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/UnfilteredAI/Mia-001
How to use UnfilteredAI/Mia-001 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "UnfilteredAI/Mia-001" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "UnfilteredAI/Mia-001",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "UnfilteredAI/Mia-001" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "UnfilteredAI/Mia-001",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use UnfilteredAI/Mia-001 with Docker Model Runner:
docker model run hf.co/UnfilteredAI/Mia-001
Model Name: Mia-001
Model Type: Text Generation
Description: Mia-001 is an uncensored AI text generation model developed by MysteriousAI, aimed at advancing and democratizing artificial intelligence through open source and open science initiatives. The model is designed to push the boundaries of creativity and innovation in natural language generation tasks.
Key Features:
Use Cases:
Ethical Considerations:
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 29.05 |
| AI2 Reasoning Challenge (25-Shot) | 22.78 |
| HellaSwag (10-Shot) | 28.02 |
| MMLU (5-Shot) | 23.66 |
| TruthfulQA (0-shot) | 48.25 |
| Winogrande (5-shot) | 51.62 |
| GSM8k (5-shot) | 0.00 |
docker model run hf.co/UnfilteredAI/Mia-001