Text Generation
Transformers
Safetensors
English
Japanese
mistral
mergekit
Merge
lorablated
text-generation-inference
Instructions to use yamatazen/LorablatedStock-12B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yamatazen/LorablatedStock-12B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yamatazen/LorablatedStock-12B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("yamatazen/LorablatedStock-12B") model = AutoModelForCausalLM.from_pretrained("yamatazen/LorablatedStock-12B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yamatazen/LorablatedStock-12B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yamatazen/LorablatedStock-12B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yamatazen/LorablatedStock-12B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/yamatazen/LorablatedStock-12B
- SGLang
How to use yamatazen/LorablatedStock-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 "yamatazen/LorablatedStock-12B" \ --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": "yamatazen/LorablatedStock-12B", "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 "yamatazen/LorablatedStock-12B" \ --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": "yamatazen/LorablatedStock-12B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use yamatazen/LorablatedStock-12B with Docker Model Runner:
docker model run hf.co/yamatazen/LorablatedStock-12B
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,36 +1,39 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
-
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- mergekit
|
| 5 |
+
- merge
|
| 6 |
+
- lorablated
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
- ja
|
| 10 |
+
---
|
| 11 |
+

|
| 12 |
+
# LorablatedStock-12B
|
| 13 |
+
|
| 14 |
+
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 15 |
+
|
| 16 |
+
## Merge Details
|
| 17 |
+
### Merge Method
|
| 18 |
+
|
| 19 |
+
This model was merged using the [Model Stock](https://arxiv.org/abs/2403.19522) merge method using C:\Users\yamat\Desktop\text-generation-webui\user_data\models\HMS-Fusion-12B-Lorablated as a base.
|
| 20 |
+
|
| 21 |
+
### Models Merged
|
| 22 |
+
|
| 23 |
+
The following models were included in the merge:
|
| 24 |
+
* C:\Users\yamat\Desktop\text-generation-webui\user_data\models\ForgottenMaid-12B-Lorablated
|
| 25 |
+
* C:\Users\yamat\Desktop\text-generation-webui\user_data\models\FusionEngine-12B-Lorablated
|
| 26 |
+
|
| 27 |
+
### Configuration
|
| 28 |
+
|
| 29 |
+
The following YAML configuration was used to produce this model:
|
| 30 |
+
|
| 31 |
+
```yaml
|
| 32 |
+
merge_method: model_stock
|
| 33 |
+
dtype: bfloat16
|
| 34 |
+
out_dtype: bfloat16
|
| 35 |
+
base_model: C:\Users\yamat\Desktop\text-generation-webui\user_data\models\HMS-Fusion-12B-Lorablated
|
| 36 |
+
models:
|
| 37 |
+
- model: C:\Users\yamat\Desktop\text-generation-webui\user_data\models\ForgottenMaid-12B-Lorablated
|
| 38 |
+
- model: C:\Users\yamat\Desktop\text-generation-webui\user_data\models\FusionEngine-12B-Lorablated
|
| 39 |
+
```
|