Text Generation
Transformers
Safetensors
mistral
mergekit
Merge
roleplay
conversational
text-generation-inference
Instructions to use Vortex5/Cosmic-Night-12B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Vortex5/Cosmic-Night-12B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Vortex5/Cosmic-Night-12B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Vortex5/Cosmic-Night-12B") model = AutoModelForCausalLM.from_pretrained("Vortex5/Cosmic-Night-12B") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Vortex5/Cosmic-Night-12B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Vortex5/Cosmic-Night-12B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Vortex5/Cosmic-Night-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Vortex5/Cosmic-Night-12B
- SGLang
How to use Vortex5/Cosmic-Night-12B 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 "Vortex5/Cosmic-Night-12B" \ --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": "Vortex5/Cosmic-Night-12B", "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 "Vortex5/Cosmic-Night-12B" \ --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": "Vortex5/Cosmic-Night-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Vortex5/Cosmic-Night-12B with Docker Model Runner:
docker model run hf.co/Vortex5/Cosmic-Night-12B
| base_model: | |
| - anthracite-org/magnum-v4-12b | |
| - SuperbEmphasis/MN-12b-RP-Ink-RP-Longform | |
| - Vortex5/Darklit-Maiden-12B | |
| - crestf411/MN-Slush | |
| - TheDrummer/Rocinante-X-12B-v1 | |
| - cgato/Nemo-12b-Humanize-SFT-v0.2.5-KTO | |
| - Vortex5/NoctyxCosma-12B | |
| library_name: transformers | |
| tags: | |
| - mergekit | |
| - merge | |
| - roleplay | |
| license: apache-2.0 | |
| <section class="model-card"> | |
| <div class="header"> | |
| <h1 class="title">Cosmic-Night-12B</h1> | |
| </div> | |
| <div class="image-container"> | |
| <img src="https://cdn-uploads.huggingface.co/production/uploads/6669a3a617b838fda45637b8/H9ivWbF1gbkxY-b-ZHjDs.jpeg"> | |
| </div> | |
| <div class="divider"></div> | |
| <section class="box"> | |
| <h2 class="box-title">Overview</h2> | |
| <p> | |
| <strong class="highlight">Cosmic-Night-12B</strong> was created by merging | |
| <a href="https://huggingface.co/Vortex5/NoctyxCosma-12B" class="link">NoctyxCosma-12B</a>, | |
| <a href="https://huggingface.co/TheDrummer/Rocinante-X-12B-v1" class="link">Rocinante-X-12B-v1</a>, | |
| <a href="https://huggingface.co/anthracite-org/magnum-v4-12b" class="link">magnum-v4-12b</a>, | |
| <a href="https://huggingface.co/crestf411/MN-Slush" class="link">MN-Slush</a>, | |
| <a href="https://huggingface.co/Vortex5/Darklit-Maiden-12B" class="link">Darklit-Maiden-12B</a>, | |
| <a href="https://huggingface.co/cgato/Nemo-12b-Humanize-SFT-v0.2.5-KTO" class="link">Nemo-12b-Humanize-SFT-v0.2.5-KTO</a>, and | |
| <a href="https://huggingface.co/SuperbEmphasis/MN-12b-RP-Ink-RP-Longform" class="link">MN-12b-RP-Ink-RP-Longform</a>, | |
| using a custom method. | |
| </p> | |
| <details class="collapse"> | |
| <summary>Merge configuration</summary> | |
| <pre> | |
| base_model: Vortex5/NoctyxCosma-12B | |
| models: | |
| - model: TheDrummer/Rocinante-X-12B-v1 | |
| - model: anthracite-org/magnum-v4-12b | |
| - model: crestf411/MN-Slush | |
| - model: Vortex5/Darklit-Maiden-12B | |
| - model: cgato/Nemo-12b-Humanize-SFT-v0.2.5-KTO | |
| - model: SuperbEmphasis/MN-12b-RP-Ink-RP-Longform | |
| merge_method: gema | |
| chat_template: auto | |
| dtype: float32 | |
| out_dtype: bfloat16 | |
| parameters: | |
| strength: 0.95 | |
| aggression: 0.89 | |
| consensus_amp: 1.52 | |
| novelty: 0.25 | |
| osmosis_strength: 0.92 | |
| tokenizer: | |
| source: Vortex5/NoctyxCosma-12B | |
| </pre> | |
| </details> | |
| </section> | |
| <section class="box last-box"> | |
| <h2 class="box-title">Intended Use</h2> | |
| <div class="grid"> | |
| <div class="tile"> | |
| <span class="tile-main">Roleplay</span> | |
| <span class="tile-sub">Emotion-forward interaction</span> | |
| </div> | |
| <div class="tile"> | |
| <span class="tile-main">Storytelling</span> | |
| <span class="tile-sub">Long-form narrative</span> | |
| </div> | |
| <div class="tile"> | |
| <span class="tile-main">Creative Writing</span> | |
| <span class="tile-sub">Atmospheric fiction</span> | |
| </div> | |
| </div> | |
| </section> | |
| <div class="divider"></div> | |
| </section> | |
| <style> | |
| .model-card { | |
| max-width: 1100px; | |
| margin: 40px auto; | |
| padding: 48px 38px 56px; | |
| font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | |
| color: #e8e8f5; | |
| background: | |
| radial-gradient(circle at 25% 30%, rgba(160, 180, 255, 0.10) 0%, transparent 50%), | |
| radial-gradient(circle at 75% 65%, rgba(120, 140, 255, 0.08) 0%, transparent 55%), | |
| #0c0c18; | |
| border: 2px solid #4a4a6a; | |
| border-radius: 28px; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .model-card::before { | |
| content: ''; | |
| position: absolute; | |
| inset: 0; | |
| background-image: | |
| radial-gradient(circle, #ffffff 1.2px, transparent 1.2px), | |
| radial-gradient(circle, #ffffff 1px, transparent 1px), | |
| radial-gradient(circle, #d0d8ff 1.8px, transparent 1.8px), | |
| radial-gradient(circle, #d0d8ff 1.4px, transparent 1.4px), | |
| radial-gradient(circle, #a8b8ff 0.9px, transparent 0.9px), | |
| radial-gradient(circle, #a8b8ff 0.7px, transparent 0.7px), | |
| radial-gradient(circle, #e0e8ff 0.6px, transparent 0.6px); | |
| background-position: | |
| 0 0, | |
| 28px 42px, | |
| 55px 15px, | |
| 80px 65px, | |
| 12px 88px, | |
| 95px 33px, | |
| 45px 78px; | |
| background-size: | |
| 85px 85px, | |
| 110px 95px, | |
| 70px 105px, | |
| 95px 80px, | |
| 60px 70px, | |
| 120px 55px, | |
| 75px 90px; | |
| opacity: 0.22; | |
| pointer-events: none; | |
| z-index: 0; | |
| animation: subtle-twinkle 24s linear infinite; | |
| } | |
| @keyframes subtle-twinkle { | |
| 0%, 100% { opacity: 0.22; } | |
| 50% { opacity: 0.29; } | |
| } | |
| .header { | |
| text-align: center; | |
| padding-bottom: 28px; | |
| position: relative; | |
| z-index: 1; | |
| } | |
| .title { | |
| margin: 0; | |
| font-size: clamp(1.75rem, 4.8vw, 2.85rem); | |
| font-weight: 900; | |
| letter-spacing: 0.14em; | |
| text-transform: uppercase; | |
| color: #f0f2ff; | |
| text-shadow: | |
| 0 0 20px rgba(208, 212, 232, 0.5), | |
| 0 0 45px rgba(120, 140, 255, 0.35); | |
| } | |
| .image-container { | |
| display: flex; | |
| justify-content: center; | |
| position: relative; | |
| z-index: 1; | |
| margin-bottom: 36px; | |
| } | |
| .image-container img { | |
| width: 100%; | |
| max-width: 820px; | |
| border-radius: 22px; | |
| border: 3px solid #5a5a7a; | |
| box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.7); | |
| } | |
| .divider { | |
| height: 2px; | |
| margin: 40px 0; | |
| background: linear-gradient(90deg, | |
| transparent, | |
| #5a5a7a 25%, | |
| #a0b8e0 50%, | |
| #5a5a7a 75%, | |
| transparent | |
| ); | |
| position: relative; | |
| z-index: 1; | |
| } | |
| .box { | |
| padding: 34px; | |
| background: rgba(26, 28, 48, 0.96); | |
| border: 1px solid #4a4a6a; | |
| border-radius: 20px; | |
| box-shadow: | |
| inset 0 4px 0 rgba(255,255,255,0.05), | |
| 0 15px 40px -15px rgba(0,0,0,0.6); | |
| position: relative; | |
| z-index: 2; | |
| backdrop-filter: blur(10px); | |
| margin-bottom: 32px; | |
| } | |
| .last-box { | |
| margin-bottom: 0; | |
| } | |
| .box-title { | |
| margin: 0 0 20px; | |
| font-size: 1.18rem; | |
| font-weight: 800; | |
| letter-spacing: 0.22em; | |
| text-transform: uppercase; | |
| color: #d8dae8; | |
| border-bottom: 2px solid #7a6eb0; | |
| padding-bottom: 12px; | |
| display: inline-block; | |
| } | |
| .box p { | |
| margin: 16px 0 20px; | |
| line-height: 1.8; | |
| color: #c8cce0; | |
| font-size: 1.04rem; | |
| } | |
| .highlight { | |
| color: #f0f2ff; | |
| font-weight: 700; | |
| text-shadow: 0 0 8px rgba(160, 180, 255, 0.4); | |
| } | |
| .collapse { | |
| margin-top: 24px; | |
| background: rgba(20, 22, 40, 0.95); | |
| border: 1px solid #5a5a7a; | |
| border-radius: 16px; | |
| overflow: hidden; | |
| } | |
| .collapse summary { | |
| padding: 18px 24px; | |
| cursor: pointer; | |
| font-size: 0.85rem; | |
| font-weight: 700; | |
| letter-spacing: 0.15em; | |
| text-transform: uppercase; | |
| color: #e0e2f0; | |
| background: rgba(35, 38, 58, 0.9); | |
| border-bottom: 1px solid #4a4a6a; | |
| } | |
| .collapse pre { | |
| margin: 0; | |
| padding: 24px; | |
| background: #161824; | |
| color: #b8bcd8; | |
| font-size: 0.87rem; | |
| line-height: 1.7; | |
| font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; | |
| overflow-x: auto; | |
| } | |
| .grid { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 24px; | |
| margin-top: 20px; | |
| } | |
| .tile { | |
| flex: 1 1 245px; | |
| padding: 26px 22px; | |
| background: rgba(28, 30, 52, 0.92); | |
| border: 1px solid #5a5a7a; | |
| border-radius: 18px; | |
| text-align: center; | |
| transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); | |
| } | |
| .tile:hover { | |
| transform: translateY(-6px); | |
| border-color: #a0b8e0; | |
| box-shadow: 0 20px 45px -15px rgba(160, 184, 224, 0.35); | |
| } | |
| .tile-main { | |
| display: block; | |
| margin-bottom: 10px; | |
| font-size: 1.1rem; | |
| font-weight: 800; | |
| letter-spacing: 0.1em; | |
| text-transform: uppercase; | |
| color: #f0f2ff; | |
| } | |
| .tile-sub { | |
| display: block; | |
| font-size: 0.94rem; | |
| color: #b0b4d0; | |
| line-height: 1.5; | |
| } | |
| .link { | |
| color: #a0b8e0; | |
| text-decoration: none; | |
| transition: color 0.3s ease; | |
| } | |
| .link:hover { | |
| color: #e0e6ff; | |
| text-decoration: underline; | |
| } | |
| @media (max-width: 650px) { | |
| .model-card { | |
| padding: 32px 20px 40px; | |
| margin: 20px 10px; | |
| } | |
| .box { | |
| padding: 26px; | |
| } | |
| } | |
| </style> |