Text Generation
Transformers
Safetensors
llama
mergekit
Merge
conversational
text-generation-inference
Instructions to use Sumail/Eurus8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sumail/Eurus8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sumail/Eurus8") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Sumail/Eurus8") model = AutoModelForCausalLM.from_pretrained("Sumail/Eurus8") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Sumail/Eurus8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sumail/Eurus8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sumail/Eurus8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Sumail/Eurus8
- SGLang
How to use Sumail/Eurus8 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 "Sumail/Eurus8" \ --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": "Sumail/Eurus8", "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 "Sumail/Eurus8" \ --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": "Sumail/Eurus8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Sumail/Eurus8 with Docker Model Runner:
docker model run hf.co/Sumail/Eurus8
Upload folder using huggingface_hub
Browse files- README.md +7 -7
- config.json +1 -1
- mergekit_config.yml +3 -3
- model-00001-of-00004.safetensors +1 -1
- model-00002-of-00004.safetensors +1 -1
- model-00003-of-00004.safetensors +1 -1
- model-00004-of-00004.safetensors +1 -1
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
-
-
|
| 4 |
-
-
|
| 5 |
library_name: transformers
|
| 6 |
tags:
|
| 7 |
- mergekit
|
|
@@ -20,8 +20,8 @@ This model was merged using the SLERP merge method.
|
|
| 20 |
### Models Merged
|
| 21 |
|
| 22 |
The following models were included in the merge:
|
| 23 |
-
* [
|
| 24 |
-
* [
|
| 25 |
|
| 26 |
### Configuration
|
| 27 |
|
|
@@ -32,12 +32,12 @@ The following YAML configuration was used to produce this model:
|
|
| 32 |
|
| 33 |
slices:
|
| 34 |
- sources:
|
| 35 |
-
- model:
|
| 36 |
layer_range: [0, 48]
|
| 37 |
-
- model:
|
| 38 |
layer_range: [0, 48]
|
| 39 |
merge_method: slerp
|
| 40 |
-
base_model:
|
| 41 |
parameters:
|
| 42 |
t:
|
| 43 |
- filter: self_attn
|
|
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
+
- 0x0grandpa0/melancholyson2
|
| 4 |
+
- 0x0grandpa0/melancholysdaughter
|
| 5 |
library_name: transformers
|
| 6 |
tags:
|
| 7 |
- mergekit
|
|
|
|
| 20 |
### Models Merged
|
| 21 |
|
| 22 |
The following models were included in the merge:
|
| 23 |
+
* [0x0grandpa0/melancholyson2](https://huggingface.co/0x0grandpa0/melancholyson2)
|
| 24 |
+
* [0x0grandpa0/melancholysdaughter](https://huggingface.co/0x0grandpa0/melancholysdaughter)
|
| 25 |
|
| 26 |
### Configuration
|
| 27 |
|
|
|
|
| 32 |
|
| 33 |
slices:
|
| 34 |
- sources:
|
| 35 |
+
- model: 0x0grandpa0/melancholyson2
|
| 36 |
layer_range: [0, 48]
|
| 37 |
+
- model: 0x0grandpa0/melancholysdaughter
|
| 38 |
layer_range: [0, 48]
|
| 39 |
merge_method: slerp
|
| 40 |
+
base_model: 0x0grandpa0/melancholyson2
|
| 41 |
parameters:
|
| 42 |
t:
|
| 43 |
- filter: self_attn
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"LlamaForCausalLM"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "0x0grandpa0/melancholyson2",
|
| 3 |
"architectures": [
|
| 4 |
"LlamaForCausalLM"
|
| 5 |
],
|
mergekit_config.yml
CHANGED
|
@@ -2,12 +2,12 @@
|
|
| 2 |
|
| 3 |
slices:
|
| 4 |
- sources:
|
| 5 |
-
- model:
|
| 6 |
layer_range: [0, 48]
|
| 7 |
-
- model:
|
| 8 |
layer_range: [0, 48]
|
| 9 |
merge_method: slerp
|
| 10 |
-
base_model:
|
| 11 |
parameters:
|
| 12 |
t:
|
| 13 |
- filter: self_attn
|
|
|
|
| 2 |
|
| 3 |
slices:
|
| 4 |
- sources:
|
| 5 |
+
- model: 0x0grandpa0/melancholyson2
|
| 6 |
layer_range: [0, 48]
|
| 7 |
+
- model: 0x0grandpa0/melancholysdaughter
|
| 8 |
layer_range: [0, 48]
|
| 9 |
merge_method: slerp
|
| 10 |
+
base_model: 0x0grandpa0/melancholyson2
|
| 11 |
parameters:
|
| 12 |
t:
|
| 13 |
- filter: self_attn
|
model-00001-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4945284816
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:980d669bb25cbdfb355a88eb0e3986e110b2175c53e2bc623e4094c5a865766c
|
| 3 |
size 4945284816
|
model-00002-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4934842800
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0fe545139a3aca0683a8a6368597ec2efd933bf0bd4e3b383a8b4dc20d0b765
|
| 3 |
size 4934842800
|
model-00003-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4972600080
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2fb0ea5479463939ac4975da99cb454187a54685ca5c1f27537327aff3825722
|
| 3 |
size 4972600080
|
model-00004-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2806137296
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2ce3b454e565f50c226347cafc4740529550828ba8e338627ddbfbd3ec49631
|
| 3 |
size 2806137296
|