Text Generation
Transformers
Safetensors
NeMo
mistral
mergekit
Merge
karcher_stock
conversational
text-generation-inference
Instructions to use OrobasVault/Geodesic-Phantom-12B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OrobasVault/Geodesic-Phantom-12B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OrobasVault/Geodesic-Phantom-12B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("OrobasVault/Geodesic-Phantom-12B") model = AutoModelForCausalLM.from_pretrained("OrobasVault/Geodesic-Phantom-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]:])) - NeMo
How to use OrobasVault/Geodesic-Phantom-12B with NeMo:
# tag did not correspond to a valid NeMo domain.
- Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OrobasVault/Geodesic-Phantom-12B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OrobasVault/Geodesic-Phantom-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": "OrobasVault/Geodesic-Phantom-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OrobasVault/Geodesic-Phantom-12B
- SGLang
How to use OrobasVault/Geodesic-Phantom-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 "OrobasVault/Geodesic-Phantom-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": "OrobasVault/Geodesic-Phantom-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 "OrobasVault/Geodesic-Phantom-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": "OrobasVault/Geodesic-Phantom-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use OrobasVault/Geodesic-Phantom-12B with Docker Model Runner:
docker model run hf.co/OrobasVault/Geodesic-Phantom-12B
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,19 +1,79 @@
|
|
| 1 |
---
|
| 2 |
-
base_model:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
library_name: transformers
|
| 4 |
tags:
|
| 5 |
- mergekit
|
| 6 |
- merge
|
| 7 |
-
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
-
#
|
|
|
|
|
|
|
| 10 |
|
| 11 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
## Merge Details
|
| 14 |
### Merge Method
|
| 15 |
|
| 16 |
-
This model was merged using the
|
| 17 |
|
| 18 |
### Models Merged
|
| 19 |
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- mistralai/Mistral-Nemo-Instruct-2407
|
| 4 |
+
- Vortex5/Prototype-X-12b
|
| 5 |
+
- Vortex5/Stellar-Witch-12B
|
| 6 |
+
- Vortex5/Celestial-Queen-12B
|
| 7 |
+
- Vortex5/Moonlit-Mirage-12B
|
| 8 |
+
- Vortex5/Crimson-Constellation-12B
|
| 9 |
+
- Vortex5/Wicked-Nebula-12B
|
| 10 |
+
|
| 11 |
library_name: transformers
|
| 12 |
tags:
|
| 13 |
- mergekit
|
| 14 |
- merge
|
| 15 |
+
- mistral
|
| 16 |
+
- nemo
|
| 17 |
+
- karcher_stock
|
| 18 |
---
|
| 19 |
+
# π» Geodesic Phantom 12B
|
| 20 |
+
|
| 21 |
+

|
| 22 |
|
| 23 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 24 |
|
| 25 |
+
This was merged on a runpod A40 using an [adaptive VRAM chunking script](https://huggingface.co/spaces/Naphula/model_tools/blob/main/graph_v18_runpod_A40.py) (based on `measure.py` by [GrimJim](https://huggingface.co/grimjim))
|
| 26 |
+
|
| 27 |
+
```bat
|
| 28 |
+
WARNING:mergekit.graph:OOM at chunk 65536, reducing to 32768 (attempt 1, progress: 0/131075)
|
| 29 |
+
WARNING:mergekit.graph:OOM at chunk 32768, reducing to 16384 (attempt 2, progress: 0/131075)
|
| 30 |
+
|
| 31 |
+
[Karcher_Stock Audit] Layer: lm_head.weight
|
| 32 |
+
Stats: Cos(ΞΈ): 0.564 | t-factor: 0.8843 | Karcher Iters: 2960
|
| 33 |
+
(Base) mistralai--Mistral-Nemo-Instruct-2407 : βββββ ( 11.57%)
|
| 34 |
+
(Donor) Vortex5--Prototype-X-12b : βββββββ ( 14.74%)
|
| 35 |
+
(Donor) Vortex5--Stellar-Witch-12B : βββββββ ( 14.74%)
|
| 36 |
+
(Donor) Vortex5--Celestial-Queen-12B : βββββββ ( 14.74%)
|
| 37 |
+
(Donor) Vortex5--Moonlit-Mirage-12B : βββββββ ( 14.74%)
|
| 38 |
+
(Donor) Vortex5--Crimson-Constellation-12B : βββββββ ( 14.74%)
|
| 39 |
+
(Donor) Vortex5--Wicked-Nebula-12B : βββββββ ( 14.74%)
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
The following patch was also required for this merge
|
| 43 |
+
|
| 44 |
+
# `karcher_stock` Adaptive Tanh Soft-Clamp v11
|
| 45 |
+
|
| 46 |
+
```py
|
| 47 |
+
# ββ 11. Model Stock t factor with Adaptive Soft-Clamp βββββββββββββ
|
| 48 |
+
N = len(ws_2d)
|
| 49 |
+
ct = cos_theta.unsqueeze(-1) if cos_theta.dim() > 0 else cos_theta
|
| 50 |
+
|
| 51 |
+
# Raw Model Stock formula
|
| 52 |
+
denom = 1.0 + (N - 1) * ct
|
| 53 |
+
# Add a tiny epsilon to prevent literal division by zero
|
| 54 |
+
t_raw = (N * ct) / denom.clamp(min=1e-6)
|
| 55 |
+
|
| 56 |
+
# --- BULLETPROOF TANH CLAMP ---
|
| 57 |
+
# 1. Prevent negative infinity spikes (fallback to base model)
|
| 58 |
+
t_clamped_bottom = torch.clamp(t_raw, min=0.0)
|
| 59 |
+
|
| 60 |
+
# 2. Smoothly asymptote positive spikes to L (Maximum allowed t-factor)
|
| 61 |
+
L = 1.5
|
| 62 |
+
excess = torch.clamp(t_clamped_bottom - 1.0, min=0.0)
|
| 63 |
+
t_soft_top = 1.0 + (L - 1.0) * torch.tanh(excess / (L - 1.0))
|
| 64 |
+
|
| 65 |
+
# 3. Apply: If t <= 1.0, use exact math. If t > 1.0, use soft curve.
|
| 66 |
+
t = torch.where(t_clamped_bottom <= 1.0, t_clamped_bottom, t_soft_top)
|
| 67 |
+
# ------------------------------
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
## Example of the clamp preventing merge corruption
|
| 71 |
+

|
| 72 |
+
|
| 73 |
## Merge Details
|
| 74 |
### Merge Method
|
| 75 |
|
| 76 |
+
This model was merged using the `karcher_stock` merge method using /workspace/models/mistralai--Mistral-Nemo-Instruct-2407 as a base.
|
| 77 |
|
| 78 |
### Models Merged
|
| 79 |
|