Instructions to use Sumail/Ame5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sumail/Ame5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sumail/Ame5") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Sumail/Ame5") model = AutoModelForCausalLM.from_pretrained("Sumail/Ame5") 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/Ame5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sumail/Ame5" # 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/Ame5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Sumail/Ame5
- SGLang
How to use Sumail/Ame5 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/Ame5" \ --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/Ame5", "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/Ame5" \ --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/Ame5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Sumail/Ame5 with Docker Model Runner:
docker model run hf.co/Sumail/Ame5
Upload folder using huggingface_hub
Browse files- README.md +5 -5
- config.json +1 -1
- mergekit_config.yml +3 -3
- model-00001-of-00001.safetensors +1 -1
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
base_model:
|
|
|
|
| 3 |
- GamblerOnTrain/danke20a
|
| 4 |
-
- coffie3/s32
|
| 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 |
* [GamblerOnTrain/danke20a](https://huggingface.co/GamblerOnTrain/danke20a)
|
| 24 |
-
* [coffie3/s32](https://huggingface.co/coffie3/s32)
|
| 25 |
|
| 26 |
### Configuration
|
| 27 |
|
|
@@ -33,17 +33,17 @@ slices:
|
|
| 33 |
- sources:
|
| 34 |
- model: GamblerOnTrain/danke20a
|
| 35 |
layer_range: [0, 24]
|
| 36 |
-
- model:
|
| 37 |
layer_range: [0, 24]
|
| 38 |
merge_method: slerp
|
| 39 |
-
base_model: GamblerOnTrain/
|
| 40 |
parameters:
|
| 41 |
t:
|
| 42 |
- filter: self_attn
|
| 43 |
value: [0, 0.5, 0.3, 0.7, 1]
|
| 44 |
- filter: mlp
|
| 45 |
value: [1, 0.5, 0.7, 0.3, 0]
|
| 46 |
-
- value: 0.
|
| 47 |
dtype: bfloat16
|
| 48 |
|
| 49 |
```
|
|
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
+
- GamblerOnTrain/danke30a
|
| 4 |
- GamblerOnTrain/danke20a
|
|
|
|
| 5 |
library_name: transformers
|
| 6 |
tags:
|
| 7 |
- mergekit
|
|
|
|
| 20 |
### Models Merged
|
| 21 |
|
| 22 |
The following models were included in the merge:
|
| 23 |
+
* [GamblerOnTrain/danke30a](https://huggingface.co/GamblerOnTrain/danke30a)
|
| 24 |
* [GamblerOnTrain/danke20a](https://huggingface.co/GamblerOnTrain/danke20a)
|
|
|
|
| 25 |
|
| 26 |
### Configuration
|
| 27 |
|
|
|
|
| 33 |
- sources:
|
| 34 |
- model: GamblerOnTrain/danke20a
|
| 35 |
layer_range: [0, 24]
|
| 36 |
+
- model: GamblerOnTrain/danke30a
|
| 37 |
layer_range: [0, 24]
|
| 38 |
merge_method: slerp
|
| 39 |
+
base_model: GamblerOnTrain/danke30a
|
| 40 |
parameters:
|
| 41 |
t:
|
| 42 |
- filter: self_attn
|
| 43 |
value: [0, 0.5, 0.3, 0.7, 1]
|
| 44 |
- filter: mlp
|
| 45 |
value: [1, 0.5, 0.7, 0.3, 0]
|
| 46 |
+
- value: 0.5
|
| 47 |
dtype: bfloat16
|
| 48 |
|
| 49 |
```
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "GamblerOnTrain/
|
| 3 |
"architectures": [
|
| 4 |
"StableLmForCausalLM"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "GamblerOnTrain/danke30a",
|
| 3 |
"architectures": [
|
| 4 |
"StableLmForCausalLM"
|
| 5 |
],
|
mergekit_config.yml
CHANGED
|
@@ -3,15 +3,15 @@ slices:
|
|
| 3 |
- sources:
|
| 4 |
- model: GamblerOnTrain/danke20a
|
| 5 |
layer_range: [0, 24]
|
| 6 |
-
- model:
|
| 7 |
layer_range: [0, 24]
|
| 8 |
merge_method: slerp
|
| 9 |
-
base_model: GamblerOnTrain/
|
| 10 |
parameters:
|
| 11 |
t:
|
| 12 |
- filter: self_attn
|
| 13 |
value: [0, 0.5, 0.3, 0.7, 1]
|
| 14 |
- filter: mlp
|
| 15 |
value: [1, 0.5, 0.7, 0.3, 0]
|
| 16 |
-
- value: 0.
|
| 17 |
dtype: bfloat16
|
|
|
|
| 3 |
- sources:
|
| 4 |
- model: GamblerOnTrain/danke20a
|
| 5 |
layer_range: [0, 24]
|
| 6 |
+
- model: GamblerOnTrain/danke30a
|
| 7 |
layer_range: [0, 24]
|
| 8 |
merge_method: slerp
|
| 9 |
+
base_model: GamblerOnTrain/danke30a
|
| 10 |
parameters:
|
| 11 |
t:
|
| 12 |
- filter: self_attn
|
| 13 |
value: [0, 0.5, 0.3, 0.7, 1]
|
| 14 |
- filter: mlp
|
| 15 |
value: [1, 0.5, 0.7, 0.3, 0]
|
| 16 |
+
- value: 0.5
|
| 17 |
dtype: bfloat16
|
model-00001-of-00001.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3289069520
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14ea8a6e63440a2159477deb5b99b2c329fd45c9cca51b9d68304177cb9581b9
|
| 3 |
size 3289069520
|