Instructions to use nothingiisreal/MN-12B-Celeste-V1.9 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nothingiisreal/MN-12B-Celeste-V1.9 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nothingiisreal/MN-12B-Celeste-V1.9") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nothingiisreal/MN-12B-Celeste-V1.9") model = AutoModelForCausalLM.from_pretrained("nothingiisreal/MN-12B-Celeste-V1.9") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Local Apps Settings
- vLLM
How to use nothingiisreal/MN-12B-Celeste-V1.9 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nothingiisreal/MN-12B-Celeste-V1.9" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nothingiisreal/MN-12B-Celeste-V1.9", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nothingiisreal/MN-12B-Celeste-V1.9
- SGLang
How to use nothingiisreal/MN-12B-Celeste-V1.9 with 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 "nothingiisreal/MN-12B-Celeste-V1.9" \ --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": "nothingiisreal/MN-12B-Celeste-V1.9", "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 "nothingiisreal/MN-12B-Celeste-V1.9" \ --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": "nothingiisreal/MN-12B-Celeste-V1.9", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nothingiisreal/MN-12B-Celeste-V1.9 with Docker Model Runner:
docker model run hf.co/nothingiisreal/MN-12B-Celeste-V1.9
Update README.md
Browse files
README.md
CHANGED
|
@@ -89,7 +89,8 @@ Currently, your role is {{char}}, described in detail below. As {{char}}, contin
|
|
| 89 |
|
| 90 |
<h2>Story Writing</h2>
|
| 91 |
|
| 92 |
-
Adding this system prompt will likely increase the humanness of the prose as we trained system prompts. You can also change it to NSFW, but you should try both regardless of whether you are writing NSFW or not.
|
|
|
|
| 93 |
|
| 94 |
System Prompt: `You are a short story writer. Write a story based on prompt provided by user below. Mode: SFW`
|
| 95 |
|
|
@@ -143,13 +144,23 @@ When convenient, say screenplay phrases like "cut to"
|
|
| 143 |
|
| 144 |
# Showcase V1.9
|
| 145 |
|
| 146 |
-
##
|
| 147 |
|
| 148 |
-
|
| 149 |
|
| 150 |
-
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/
|
| 151 |
|
| 152 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
|
| 154 |
<details>
|
| 155 |
<summary>Showcase V1.5</summary>
|
|
|
|
| 89 |
|
| 90 |
<h2>Story Writing</h2>
|
| 91 |
|
| 92 |
+
Adding this system prompt will likely increase the humanness of the prose as we trained system prompts. You can also change it to NSFW, but you should try both regardless of whether you are writing NSFW or not.<br>
|
| 93 |
+
You should also force the assistant reply to start with a `*` due to how we trained on human stories.
|
| 94 |
|
| 95 |
System Prompt: `You are a short story writer. Write a story based on prompt provided by user below. Mode: SFW`
|
| 96 |
|
|
|
|
| 144 |
|
| 145 |
# Showcase V1.9
|
| 146 |
|
| 147 |
+
## Story Writing
|
| 148 |
|
| 149 |
+
Check out the **Story Writing** section above.
|
| 150 |
|
| 151 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/H1fV1qqV2aw4qgu_vMixg.png" alt="" width="800"/>
|
| 152 |
|
| 153 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/voXyDJx_nHsPLKakHZYEf.png" alt="" width="600"/>
|
| 154 |
+
|
| 155 |
+
## RP
|
| 156 |
+
|
| 157 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/D4F8nVQyrcmdVT_tmY8DD.png" alt="" width="800"/>
|
| 158 |
+
|
| 159 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/gbFt7Ntz3ERVij2039YJi.png" alt="" width="800"/>
|
| 160 |
+
|
| 161 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/jT-zHsUGiQPP2TNzlxwlG.png" alt="" width="800"/>
|
| 162 |
+
|
| 163 |
+
It can do NSFW aswell, thats for you to try out.
|
| 164 |
|
| 165 |
<details>
|
| 166 |
<summary>Showcase V1.5</summary>
|