Svngoku/black_mirror_scripts
Viewer • Updated • 33 • 51 • 2
How to use Svngoku/qwen3-black-mirror with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Svngoku/qwen3-black-mirror") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Svngoku/qwen3-black-mirror")
model = AutoModelForCausalLM.from_pretrained("Svngoku/qwen3-black-mirror", device_map="auto")How to use Svngoku/qwen3-black-mirror with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Svngoku/qwen3-black-mirror"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Svngoku/qwen3-black-mirror",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/Svngoku/qwen3-black-mirror
How to use Svngoku/qwen3-black-mirror with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Svngoku/qwen3-black-mirror" \
--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": "Svngoku/qwen3-black-mirror",
"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 "Svngoku/qwen3-black-mirror" \
--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": "Svngoku/qwen3-black-mirror",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use Svngoku/qwen3-black-mirror with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Svngoku/qwen3-black-mirror to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Svngoku/qwen3-black-mirror to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Svngoku/qwen3-black-mirror to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="Svngoku/qwen3-black-mirror",
max_seq_length=2048,
)How to use Svngoku/qwen3-black-mirror with Docker Model Runner:
docker model run hf.co/Svngoku/qwen3-black-mirror
| Metric | Value |
|---|---|
| Model | Svngoku/qwen3-black-mirror (https://huggingface.co/Svngoku/qwen3-black-mirror) |
| Base | Qwen3-0.6B-Base (4-bit) |
| Data | 33 episodes across 7 seasons, auto-merged |
| Epochs | 3 |
| Steps | 15 |
| Training time | 25 seconds |
| Loss | 3.08 -> 2.09 (epoch 2) -> 2.54 (epoch 3) |
| Upload | Merged 16-bit model (1.19 GB) |
| The model was merged (LoRA weights folded into the base model) and pushed as a standalone model to Svngoku/qwen3-black-mirror. The inference test shows it's generating coherent text with some thematic influence (surveillance, privacy, ratings -- very Black Mirror). | |
| Artifacts created: |
This qwen3 model was trained 2x faster with Unsloth and Huggingface's TRL library.