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
|
@@ -15,17 +15,35 @@ license: apache-2.0
|
|
| 15 |
margin-bottom: 0.5em;
|
| 16 |
}
|
| 17 |
h1 {
|
| 18 |
-
font-size:
|
| 19 |
}
|
| 20 |
h2 {
|
| 21 |
-
font-size: 1.
|
| 22 |
}
|
| 23 |
-
p, ul, ol, summary {
|
| 24 |
font-size: 1.1em;
|
| 25 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
</style>
|
| 27 |
|
| 28 |
-
<h1
|
|
|
|
| 29 |
<h2 style="color: red; font-weight: bold;">Read the Usage Tips Below! Use ChatML.</h2><h2>Join <a href="https://discord.gg/EWzsFddYAd">our Discord</a> for testing newer versions and news! We are also on KoboldAI</h2>
|
| 30 |
|
| 31 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/QcU3xEgVu18jeFtMFxIw-.webp" alt="" width="800"/>
|
|
@@ -75,10 +93,10 @@ If one doesn't work, try the other.
|
|
| 75 |
|
| 76 |
I usually start the first few messages with Stable and see how it goes. If it falls into repetition I switch to Creative. But you can also just use either the whole way through, creative may need a few swipes from time to time.
|
| 77 |
|
| 78 |
-
<
|
| 79 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/1m18WnuomY8jEZTA87Iun.png" alt="" width="400"/>
|
| 80 |
|
| 81 |
-
<
|
| 82 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/DaL2hWZst0yW34CYK4df8.png" alt="" width="400"/>
|
| 83 |
|
| 84 |
Don't shy away from experimenting after you get a feel for the model though.
|
|
@@ -96,16 +114,17 @@ Currently, your role is {{char}}, described in detail below. As {{char}}, contin
|
|
| 96 |
|
| 97 |
<h2>Story Writing</h2>
|
| 98 |
|
| 99 |
-
Adding
|
| 100 |
-
You should also
|
| 101 |
-
|
| 102 |
-
System Prompt: `You are a short story writer. Write a story based on prompt provided by user below. Mode: SFW`
|
| 103 |
|
|
|
|
|
|
|
|
|
|
| 104 |
If your first message is using human-like prose, Celeste will copy it in the next messages, check out the Showcase below.
|
| 105 |
|
| 106 |
<h2>Swipes</h2>
|
| 107 |
|
| 108 |
-
**Important
|
| 109 |
|
| 110 |
<h2>OOC Steering</h2>
|
| 111 |
|
|
@@ -113,7 +132,7 @@ If your first message is using human-like prose, Celeste will copy it in the nex
|
|
| 113 |
|
| 114 |
<h2>"Dead Dove"</h2>
|
| 115 |
|
| 116 |
-
For character cards with persistent motivations throughout the story, use world books [tutorial here](https://huggingface.co/nothingiisreal/how-to-use-ST-worldinfo)
|
| 117 |
|
| 118 |
<h2>Fewshot</h2>
|
| 119 |
|
|
@@ -132,7 +151,7 @@ If you want only SFW and are having troubles, there is probably some system prom
|
|
| 132 |
<h2>Refusals</h2>
|
| 133 |
|
| 134 |
As said, if instruct refusal (very rare,) prefill 2-3 words. **Refusal of romantic advances (which almost never happens on 12B,) are realistic and we think is good. Prefill if you don't like.** <br>
|
| 135 |
-
|
| 136 |
<h2>Mistral Context</h2>
|
| 137 |
|
| 138 |
While trained on 8K, the model should be able to inherit longer context from Mistral 12B. Should be at minimum 16K.
|
|
|
|
| 15 |
margin-bottom: 0.5em;
|
| 16 |
}
|
| 17 |
h1 {
|
| 18 |
+
font-size: 3em;
|
| 19 |
}
|
| 20 |
h2 {
|
| 21 |
+
font-size: 1.6em;
|
| 22 |
}
|
| 23 |
+
p, ul, ol, strong, summary {
|
| 24 |
font-size: 1.1em;
|
| 25 |
}
|
| 26 |
+
.line-spaceless {
|
| 27 |
+
line-height: 1;
|
| 28 |
+
margin: 0;
|
| 29 |
+
padding: 0;
|
| 30 |
+
}
|
| 31 |
+
.half-space {
|
| 32 |
+
line-height: 0.5em;
|
| 33 |
+
margin-bottom: 0.25em;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.text-center {
|
| 37 |
+
text-align: center;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.tiny-text {
|
| 41 |
+
font-size: 0.8em;
|
| 42 |
+
}
|
| 43 |
</style>
|
| 44 |
|
| 45 |
+
<h1 class="line-spaceless text-center">Celeste V1.9</h1>
|
| 46 |
+
<p class="half-space text-center tiny-text">Based on Mistral Nemo 12B</p>
|
| 47 |
<h2 style="color: red; font-weight: bold;">Read the Usage Tips Below! Use ChatML.</h2><h2>Join <a href="https://discord.gg/EWzsFddYAd">our Discord</a> for testing newer versions and news! We are also on KoboldAI</h2>
|
| 48 |
|
| 49 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/QcU3xEgVu18jeFtMFxIw-.webp" alt="" width="800"/>
|
|
|
|
| 93 |
|
| 94 |
I usually start the first few messages with Stable and see how it goes. If it falls into repetition I switch to Creative. But you can also just use either the whole way through, creative may need a few swipes from time to time.
|
| 95 |
|
| 96 |
+
<strong>> Stable</strong>
|
| 97 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/1m18WnuomY8jEZTA87Iun.png" alt="" width="400"/>
|
| 98 |
|
| 99 |
+
<strong>> Creative</strong>
|
| 100 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/DaL2hWZst0yW34CYK4df8.png" alt="" width="400"/>
|
| 101 |
|
| 102 |
Don't shy away from experimenting after you get a feel for the model though.
|
|
|
|
| 114 |
|
| 115 |
<h2>Story Writing</h2>
|
| 116 |
|
| 117 |
+
**Adding the below 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 SFW regardless of whether you are writing NSFW or not.<br>
|
| 118 |
+
You should also try forcing the assistant reply to start with a `*` due to how we trained on human stories.
|
|
|
|
|
|
|
| 119 |
|
| 120 |
+
```
|
| 121 |
+
You are a short story writer. Write a story based on prompt provided by user below. Mode: SFW`
|
| 122 |
+
```
|
| 123 |
If your first message is using human-like prose, Celeste will copy it in the next messages, check out the Showcase below.
|
| 124 |
|
| 125 |
<h2>Swipes</h2>
|
| 126 |
|
| 127 |
+
**Important: swipe 2-3 times if you dont like a response** This model gives wildly differing swipes.
|
| 128 |
|
| 129 |
<h2>OOC Steering</h2>
|
| 130 |
|
|
|
|
| 132 |
|
| 133 |
<h2>"Dead Dove"</h2>
|
| 134 |
|
| 135 |
+
For character cards with persistent motivations throughout the story, use world books at low depth [tutorial here](https://huggingface.co/nothingiisreal/how-to-use-ST-worldinfo)
|
| 136 |
|
| 137 |
<h2>Fewshot</h2>
|
| 138 |
|
|
|
|
| 151 |
<h2>Refusals</h2>
|
| 152 |
|
| 153 |
As said, if instruct refusal (very rare,) prefill 2-3 words. **Refusal of romantic advances (which almost never happens on 12B,) are realistic and we think is good. Prefill if you don't like.** <br>
|
| 154 |
+
|
| 155 |
<h2>Mistral Context</h2>
|
| 156 |
|
| 157 |
While trained on 8K, the model should be able to inherit longer context from Mistral 12B. Should be at minimum 16K.
|