Text Generation
Transformers
Safetensors
Russian
English
mistral
Merge
Roleplay
Creative
conversational
text-generation-inference
Instructions to use OddTheGreat/Unity-12B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OddTheGreat/Unity-12B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OddTheGreat/Unity-12B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("OddTheGreat/Unity-12B") model = AutoModelForCausalLM.from_pretrained("OddTheGreat/Unity-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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use OddTheGreat/Unity-12B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OddTheGreat/Unity-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": "OddTheGreat/Unity-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OddTheGreat/Unity-12B
- SGLang
How to use OddTheGreat/Unity-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 "OddTheGreat/Unity-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": "OddTheGreat/Unity-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 "OddTheGreat/Unity-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": "OddTheGreat/Unity-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use OddTheGreat/Unity-12B with Docker Model Runner:
docker model run hf.co/OddTheGreat/Unity-12B
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,46 +1,18 @@
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
-
- OddTheGreat/PartTwo-12B
|
| 4 |
- OddTheGreat/PartOne-12B
|
|
|
|
| 5 |
library_name: transformers
|
| 6 |
tags:
|
| 7 |
-
- mergekit
|
| 8 |
- merge
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
-
# merge
|
| 12 |
-
|
| 13 |
-
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 14 |
-
|
| 15 |
-
## Merge Details
|
| 16 |
-
### Merge Method
|
| 17 |
-
|
| 18 |
-
This model was merged using the [TIES](https://arxiv.org/abs/2306.01708) merge method using [OddTheGreat/PartOne-12B](https://huggingface.co/OddTheGreat/PartOne-12B) as a base.
|
| 19 |
-
|
| 20 |
-
### Models Merged
|
| 21 |
-
|
| 22 |
-
The following models were included in the merge:
|
| 23 |
-
* [OddTheGreat/PartTwo-12B](https://huggingface.co/OddTheGreat/PartTwo-12B)
|
| 24 |
-
|
| 25 |
-
### Configuration
|
| 26 |
-
|
| 27 |
-
The following YAML configuration was used to produce this model:
|
| 28 |
-
|
| 29 |
-
```yaml
|
| 30 |
-
models:
|
| 31 |
-
- model: OddTheGreat/PartOne-12B
|
| 32 |
-
parameters:
|
| 33 |
-
density: 0.5
|
| 34 |
-
weight: 0.5
|
| 35 |
-
- model: OddTheGreat/PartTwo-12B
|
| 36 |
-
parameters:
|
| 37 |
-
density: 0.5
|
| 38 |
-
weight: 0.5
|
| 39 |
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
int8_mask: true
|
| 45 |
-
dtype: float16
|
| 46 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
base_model:
|
|
|
|
| 3 |
- OddTheGreat/PartOne-12B
|
| 4 |
+
- OddTheGreat/PartTwo-12B
|
| 5 |
library_name: transformers
|
| 6 |
tags:
|
|
|
|
| 7 |
- merge
|
| 8 |
+
- Roleplay
|
| 9 |
+
- Creative
|
| 10 |
+
language:
|
| 11 |
+
- ru
|
| 12 |
+
- en
|
| 13 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
This is a merge of pre-trained language models
|
| 16 |
+
Main usage - RP, ERP, Chat-asisstant on russian and english languages
|
| 17 |
+
This model is created to work in SillyTavern
|
| 18 |
+
Best use ChatML format, works really good. Tested on Temerature 1.01
|
|
|
|
|
|
|
|
|