Text Generation
Transformers
Safetensors
NeMo
English
mistral
karcher
Merge
mergekit
conversational
text-generation-inference
Instructions to use Naphula/Riemannian-Redshift-12B-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Naphula/Riemannian-Redshift-12B-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Naphula/Riemannian-Redshift-12B-v1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Naphula/Riemannian-Redshift-12B-v1") model = AutoModelForCausalLM.from_pretrained("Naphula/Riemannian-Redshift-12B-v1", device_map="auto") 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]:])) - NeMo
How to use Naphula/Riemannian-Redshift-12B-v1 with NeMo:
# tag did not correspond to a valid NeMo domain.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Naphula/Riemannian-Redshift-12B-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Naphula/Riemannian-Redshift-12B-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Naphula/Riemannian-Redshift-12B-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Naphula/Riemannian-Redshift-12B-v1
- SGLang
How to use Naphula/Riemannian-Redshift-12B-v1 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 "Naphula/Riemannian-Redshift-12B-v1" \ --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": "Naphula/Riemannian-Redshift-12B-v1", "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 "Naphula/Riemannian-Redshift-12B-v1" \ --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": "Naphula/Riemannian-Redshift-12B-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Naphula/Riemannian-Redshift-12B-v1 with Docker Model Runner:
docker model run hf.co/Naphula/Riemannian-Redshift-12B-v1
Upload 3 files
Browse files- .gitattributes +1 -0
- README.md +86 -0
- Redshift.png +3 -0
- mergekit_config.yml +21 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Redshift.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- Vortex5/Astral-Noctra-12B
|
| 4 |
+
- Vortex5/Azure-Starlight-12B
|
| 5 |
+
- Vortex5/Crimson-Constellation-12B
|
| 6 |
+
- Vortex5/Red-Synthesis-12B
|
| 7 |
+
- Vortex5/Shining-Seraph-12B
|
| 8 |
+
- Vortex5/Starlit-Shadow-12B
|
| 9 |
+
- Vortex5/Vermilion-Sage-12B
|
| 10 |
+
- Vortex5/Scarlet-Seraph-12B
|
| 11 |
+
- Vortex5/Maroon-Sunset-12B
|
| 12 |
+
- Vortex5/Amber-Starlight-12B
|
| 13 |
+
language:
|
| 14 |
+
- en
|
| 15 |
+
library_name: transformers
|
| 16 |
+
license: apache-2.0
|
| 17 |
+
tags:
|
| 18 |
+
- karcher
|
| 19 |
+
- merge
|
| 20 |
+
- mergekit
|
| 21 |
+
- mistral
|
| 22 |
+
- nemo
|
| 23 |
+
widget:
|
| 24 |
+
- text: "Riemannian-Redshift-12B-v1"
|
| 25 |
+
output:
|
| 26 |
+
url: https://cdn-uploads.huggingface.co/production/uploads/68e840caa318194c44ec2a04/-5OsIfrWlUxoJZP4U83uq.png
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
> [!NOTE]
|
| 30 |
+
> <span style="color:red; font-weight:bold">⚠️ Note:</span> This model requires **Mistral Tekken** chat template.
|
| 31 |
+
>
|
| 32 |
+
|
| 33 |
+
# 🌌 Riemannian Redshift 12B v1
|
| 34 |
+
|
| 35 |
+
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
|
| 39 |
+
## Merge Details
|
| 40 |
+
### Merge Method
|
| 41 |
+
|
| 42 |
+
This is an experimental `karcher` merge of several high quality [Vortex5](https://huggingface.co/Vortex5) models. I used `float32` precision and `max_iter: 1000` to ensure the best bits were chosen for the Riemannian center. This merge took 5 hours using [graph_v18](https://huggingface.co/spaces/Naphula/model_tools/blob/main/graph_v18.py) as an accelerant with 8GB VRAM.
|
| 43 |
+
|
| 44 |
+
This model was merged using the [Karcher Mean](https://en.wikipedia.org/wiki/Karcher_mean) merge method.
|
| 45 |
+
|
| 46 |
+
### Models Merged
|
| 47 |
+
|
| 48 |
+
The following models were included in the merge:
|
| 49 |
+
* [Vortex5/Maroon-Sunset-12B](https://huggingface.co/Vortex5/Maroon-Sunset-12B)
|
| 50 |
+
* [Vortex5/Azure-Starlight-12B](https://huggingface.co/Vortex5/Azure-Starlight-12B)
|
| 51 |
+
* [Vortex5/Scarlet-Seraph-12B](https://huggingface.co/Vortex5/Scarlet-Seraph-12B)
|
| 52 |
+
* [Vortex5/Amber-Starlight-12B](https://huggingface.co/Vortex5/Amber-Starlight-12B)
|
| 53 |
+
* [Vortex5/Shining-Seraph-12B](https://huggingface.co/Vortex5/Shining-Seraph-12B)
|
| 54 |
+
* [Vortex5/Red-Synthesis-12B](https://huggingface.co/Vortex5/Red-Synthesis-12B)
|
| 55 |
+
* [Vortex5/Starlit-Shadow-12B](https://huggingface.co/Vortex5/Starlit-Shadow-12B)
|
| 56 |
+
* [Vortex5/Crimson-Constellation-12B](https://huggingface.co/Vortex5/Crimson-Constellation-12B)
|
| 57 |
+
* [Vortex5/Vermilion-Sage-12B](https://huggingface.co/Vortex5/Vermilion-Sage-12B)
|
| 58 |
+
* [Vortex5/Astral-Noctra-12B](https://huggingface.co/Vortex5/Astral-Noctra-12B)
|
| 59 |
+
|
| 60 |
+
### Configuration
|
| 61 |
+
|
| 62 |
+
The following YAML configuration was used to produce this model:
|
| 63 |
+
|
| 64 |
+
```yaml
|
| 65 |
+
models:
|
| 66 |
+
- model: B:/12B/models--Vortex5--Astral-Noctra-12B
|
| 67 |
+
- model: B:/12B/models--Vortex5--Azure-Starlight-12B
|
| 68 |
+
- model: B:/12B/models--Vortex5--Crimson-Constellation-12B
|
| 69 |
+
- model: B:/12B/models--Vortex5--Red-Synthesis-12B
|
| 70 |
+
- model: B:/12B/models--Vortex5--Shining-Seraph-12B
|
| 71 |
+
- model: B:/12B/models--Vortex5--Starlit-Shadow-12B
|
| 72 |
+
- model: B:/12B/models--Vortex5--Vermilion-Sage-12B
|
| 73 |
+
- model: B:/12B/models--Vortex5--Scarlet-Seraph-12B
|
| 74 |
+
- model: B:/12B/models--Vortex5--Maroon-Sunset-12B
|
| 75 |
+
- model: B:/12B/models--Vortex5--Amber-Starlight-12B
|
| 76 |
+
merge_method: karcher
|
| 77 |
+
parameters:
|
| 78 |
+
max_iter: 1000
|
| 79 |
+
tol: 1.0e-9
|
| 80 |
+
dtype: float32
|
| 81 |
+
out_dtype: bfloat16
|
| 82 |
+
tokenizer:
|
| 83 |
+
source: union
|
| 84 |
+
chat_template: auto
|
| 85 |
+
name: 🌌 Riemannian-Redshift-12B-v1
|
| 86 |
+
```
|
Redshift.png
ADDED
|
Git LFS Details
|
mergekit_config.yml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
models:
|
| 2 |
+
- model: B:/12B/models--Vortex5--Astral-Noctra-12B
|
| 3 |
+
- model: B:/12B/models--Vortex5--Azure-Starlight-12B
|
| 4 |
+
- model: B:/12B/models--Vortex5--Crimson-Constellation-12B
|
| 5 |
+
- model: B:/12B/models--Vortex5--Red-Synthesis-12B
|
| 6 |
+
- model: B:/12B/models--Vortex5--Shining-Seraph-12B
|
| 7 |
+
- model: B:/12B/models--Vortex5--Starlit-Shadow-12B
|
| 8 |
+
- model: B:/12B/models--Vortex5--Vermilion-Sage-12B
|
| 9 |
+
- model: B:/12B/models--Vortex5--Scarlet-Seraph-12B
|
| 10 |
+
- model: B:/12B/models--Vortex5--Maroon-Sunset-12B
|
| 11 |
+
- model: B:/12B/models--Vortex5--Amber-Starlight-12B
|
| 12 |
+
merge_method: karcher
|
| 13 |
+
parameters:
|
| 14 |
+
max_iter: 1000
|
| 15 |
+
tol: 1.0e-9
|
| 16 |
+
dtype: float32
|
| 17 |
+
out_dtype: bfloat16
|
| 18 |
+
tokenizer:
|
| 19 |
+
source: union
|
| 20 |
+
chat_template: auto
|
| 21 |
+
name: 🌌 Riemannian-Redshift-12B-v1
|