Instructions to use Sumail/Chalice18 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sumail/Chalice18 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sumail/Chalice18") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Sumail/Chalice18") model = AutoModelForCausalLM.from_pretrained("Sumail/Chalice18") 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 Settings
- vLLM
How to use Sumail/Chalice18 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sumail/Chalice18" # 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/Chalice18", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Sumail/Chalice18
- SGLang
How to use Sumail/Chalice18 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/Chalice18" \ --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/Chalice18", "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/Chalice18" \ --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/Chalice18", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Sumail/Chalice18 with Docker Model Runner:
docker model run hf.co/Sumail/Chalice18
Upload folder using huggingface_hub
Browse files- README.md +4 -4
- config.json +1 -1
- mergekit_config.yml +2 -2
- model-00001-of-00001.safetensors +1 -1
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
base_model:
|
|
|
|
| 3 |
- rwh/s1_1712781243
|
| 4 |
-
- abc88767/22c75
|
| 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 |
* [rwh/s1_1712781243](https://huggingface.co/rwh/s1_1712781243)
|
| 24 |
-
* [abc88767/22c75](https://huggingface.co/abc88767/22c75)
|
| 25 |
|
| 26 |
### Configuration
|
| 27 |
|
|
@@ -33,10 +33,10 @@ slices:
|
|
| 33 |
- sources:
|
| 34 |
- model: rwh/s1_1712781243
|
| 35 |
layer_range: [0, 24]
|
| 36 |
-
- model: abc88767/
|
| 37 |
layer_range: [0, 24]
|
| 38 |
merge_method: slerp
|
| 39 |
-
base_model: abc88767/
|
| 40 |
parameters:
|
| 41 |
t:
|
| 42 |
- filter: self_attn
|
|
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
+
- abc88767/2c75
|
| 4 |
- rwh/s1_1712781243
|
|
|
|
| 5 |
library_name: transformers
|
| 6 |
tags:
|
| 7 |
- mergekit
|
|
|
|
| 20 |
### Models Merged
|
| 21 |
|
| 22 |
The following models were included in the merge:
|
| 23 |
+
* [abc88767/2c75](https://huggingface.co/abc88767/2c75)
|
| 24 |
* [rwh/s1_1712781243](https://huggingface.co/rwh/s1_1712781243)
|
|
|
|
| 25 |
|
| 26 |
### Configuration
|
| 27 |
|
|
|
|
| 33 |
- sources:
|
| 34 |
- model: rwh/s1_1712781243
|
| 35 |
layer_range: [0, 24]
|
| 36 |
+
- model: abc88767/2c75
|
| 37 |
layer_range: [0, 24]
|
| 38 |
merge_method: slerp
|
| 39 |
+
base_model: abc88767/2c75
|
| 40 |
parameters:
|
| 41 |
t:
|
| 42 |
- filter: self_attn
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "abc88767/
|
| 3 |
"architectures": [
|
| 4 |
"StableLmForCausalLM"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "abc88767/2c75",
|
| 3 |
"architectures": [
|
| 4 |
"StableLmForCausalLM"
|
| 5 |
],
|
mergekit_config.yml
CHANGED
|
@@ -3,10 +3,10 @@ slices:
|
|
| 3 |
- sources:
|
| 4 |
- model: rwh/s1_1712781243
|
| 5 |
layer_range: [0, 24]
|
| 6 |
-
- model: abc88767/
|
| 7 |
layer_range: [0, 24]
|
| 8 |
merge_method: slerp
|
| 9 |
-
base_model: abc88767/
|
| 10 |
parameters:
|
| 11 |
t:
|
| 12 |
- filter: self_attn
|
|
|
|
| 3 |
- sources:
|
| 4 |
- model: rwh/s1_1712781243
|
| 5 |
layer_range: [0, 24]
|
| 6 |
+
- model: abc88767/2c75
|
| 7 |
layer_range: [0, 24]
|
| 8 |
merge_method: slerp
|
| 9 |
+
base_model: abc88767/2c75
|
| 10 |
parameters:
|
| 11 |
t:
|
| 12 |
- filter: self_attn
|
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:339df45ee76ecd981d85a14b75e1f3e037d2c55f180322cb4ebb17aba535880c
|
| 3 |
size 3289069520
|