Instructions to use athirdpath/Harmonia-20B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use athirdpath/Harmonia-20B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="athirdpath/Harmonia-20B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("athirdpath/Harmonia-20B") model = AutoModelForCausalLM.from_pretrained("athirdpath/Harmonia-20B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use athirdpath/Harmonia-20B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "athirdpath/Harmonia-20B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "athirdpath/Harmonia-20B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/athirdpath/Harmonia-20B
- SGLang
How to use athirdpath/Harmonia-20B 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 "athirdpath/Harmonia-20B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "athirdpath/Harmonia-20B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "athirdpath/Harmonia-20B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "athirdpath/Harmonia-20B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use athirdpath/Harmonia-20B with Docker Model Runner:
docker model run hf.co/athirdpath/Harmonia-20B
Commit ·
6334af0
1
Parent(s): 34db167
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,29 +4,15 @@ license: cc-by-nc-4.0
|
|
| 4 |
This is a unified 20B model crafted via a multi-step SLERP merge of eight 20B models. The aim was to develop a versatile "base model" for TaskArithmetic in this size class.
|
| 5 |
|
| 6 |
Merging Process:
|
|
|
|
| 7 |
|
| 8 |
-
---Part A:
|
| 9 |
-
|
| 10 |
-
Part 1:
|
| 11 |
-
|
| 12 |
- model: Undi95/Emerhyst-20B
|
| 13 |
- model: Undi95/MXLewd-L2-20B
|
| 14 |
-
|
| 15 |
-
Part 2:
|
| 16 |
-
|
| 17 |
- model: Undi95/Lewd-Sydney-20B
|
| 18 |
- model: athirdpath/Nethena-20b-Glued
|
| 19 |
-
|
| 20 |
-
---Part B:
|
| 21 |
-
|
| 22 |
-
Part 3:
|
| 23 |
-
|
| 24 |
- model: tavtav/Rose-20B
|
| 25 |
- model: Undi95/PsyMedRP-v1-20B
|
| 26 |
-
|
| 27 |
-
Part 4:
|
| 28 |
-
|
| 29 |
- model: NeverSleep/Noromaid-20b-v0.1.1
|
| 30 |
- model: Undi95/U-Amethyst-20B
|
| 31 |
|
| 32 |
-
The idea behind this process was to blend the unique attributes of each model while minimizing individual quirks. This approach has also shown promising results as a standalone RP model.
|
|
|
|
| 4 |
This is a unified 20B model crafted via a multi-step SLERP merge of eight 20B models. The aim was to develop a versatile "base model" for TaskArithmetic in this size class.
|
| 5 |
|
| 6 |
Merging Process:
|
| 7 |
+

|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
- model: Undi95/Emerhyst-20B
|
| 10 |
- model: Undi95/MXLewd-L2-20B
|
|
|
|
|
|
|
|
|
|
| 11 |
- model: Undi95/Lewd-Sydney-20B
|
| 12 |
- model: athirdpath/Nethena-20b-Glued
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
- model: tavtav/Rose-20B
|
| 14 |
- model: Undi95/PsyMedRP-v1-20B
|
|
|
|
|
|
|
|
|
|
| 15 |
- model: NeverSleep/Noromaid-20b-v0.1.1
|
| 16 |
- model: Undi95/U-Amethyst-20B
|
| 17 |
|
| 18 |
+
The idea behind this process was to blend the unique attributes of each model while minimizing individual quirks. This approach has also shown promising results as a standalone RP model, providing a combination of high-quality writing and situational problem-solving/awareness.
|