Text Generation
Transformers
Safetensors
English
gemma2
mergekit
Merge
roleplay
sillytavern
conversational
text-generation-inference
Instructions to use tannedbum/Ellaria-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tannedbum/Ellaria-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tannedbum/Ellaria-9B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tannedbum/Ellaria-9B") model = AutoModelForCausalLM.from_pretrained("tannedbum/Ellaria-9B", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tannedbum/Ellaria-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tannedbum/Ellaria-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tannedbum/Ellaria-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tannedbum/Ellaria-9B
- SGLang
How to use tannedbum/Ellaria-9B 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 "tannedbum/Ellaria-9B" \ --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": "tannedbum/Ellaria-9B", "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 "tannedbum/Ellaria-9B" \ --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": "tannedbum/Ellaria-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use tannedbum/Ellaria-9B with Docker Model Runner:
docker model run hf.co/tannedbum/Ellaria-9B
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,52 +1,76 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model:
|
| 3 |
-
- princeton-nlp/gemma-2-9b-it-SimPO
|
| 4 |
-
- TheDrummer/Gemmasutra-9B-v1
|
| 5 |
-
library_name: transformers
|
| 6 |
-
tags:
|
| 7 |
-
- mergekit
|
| 8 |
-
- merge
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
##
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- princeton-nlp/gemma-2-9b-it-SimPO
|
| 4 |
+
- TheDrummer/Gemmasutra-9B-v1
|
| 5 |
+
library_name: transformers
|
| 6 |
+
tags:
|
| 7 |
+
- mergekit
|
| 8 |
+
- merge
|
| 9 |
+
- roleplay
|
| 10 |
+
- sillytavern
|
| 11 |
+
- gemma2
|
| 12 |
+
- not-for-all-audiences
|
| 13 |
+
license: cc-by-nc-4.0
|
| 14 |
+
language:
|
| 15 |
+
- en
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
## SillyTavern
|
| 19 |
+
|
| 20 |
+
## Text Completion presets
|
| 21 |
+
```
|
| 22 |
+
temp 0.9
|
| 23 |
+
top_k 30
|
| 24 |
+
top_p 0.75
|
| 25 |
+
min_p 0.2
|
| 26 |
+
rep_pen 1.1
|
| 27 |
+
smooth_factor 0.25
|
| 28 |
+
smooth_curve 1
|
| 29 |
+
```
|
| 30 |
+
## Advanced Formatting
|
| 31 |
+
|
| 32 |
+
[Instruct preset by Virt-io](https://huggingface.co/Virt-io/SillyTavern-Presets/tree/main/Prompts/LLAMA-3/v1.9)
|
| 33 |
+
|
| 34 |
+
Target length (tokens): 192
|
| 35 |
+
Instruct Mode: Enabled
|
| 36 |
+
|
| 37 |
+
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 38 |
+
|
| 39 |
+
## Merge Details
|
| 40 |
+
### Merge Method
|
| 41 |
+
|
| 42 |
+
This model was merged using the SLERP merge method.
|
| 43 |
+
|
| 44 |
+
### Models Merged
|
| 45 |
+
|
| 46 |
+
The following models were included in the merge:
|
| 47 |
+
* [princeton-nlp/gemma-2-9b-it-SimPO](https://huggingface.co/princeton-nlp/gemma-2-9b-it-SimPO)
|
| 48 |
+
* [TheDrummer/Gemmasutra-9B-v1](https://huggingface.co/TheDrummer/Gemmasutra-9B-v1)
|
| 49 |
+
|
| 50 |
+
### Configuration
|
| 51 |
+
|
| 52 |
+
The following YAML configuration was used to produce this model:
|
| 53 |
+
|
| 54 |
+
```yaml
|
| 55 |
+
slices:
|
| 56 |
+
- sources:
|
| 57 |
+
- model: TheDrummer/Gemmasutra-9B-v1
|
| 58 |
+
layer_range: [0, 42]
|
| 59 |
+
- model: princeton-nlp/gemma-2-9b-it-SimPO
|
| 60 |
+
layer_range: [0, 42]
|
| 61 |
+
merge_method: slerp
|
| 62 |
+
base_model: TheDrummer/Gemmasutra-9B-v1
|
| 63 |
+
parameters:
|
| 64 |
+
t:
|
| 65 |
+
- filter: self_attn
|
| 66 |
+
value: [0.2, 0.4, 0.6, 0.2, 0.4]
|
| 67 |
+
- filter: mlp
|
| 68 |
+
value: [0.8, 0.6, 0.4, 0.8, 0.6]
|
| 69 |
+
- value: 0.4
|
| 70 |
+
dtype: bfloat16
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
```
|