Instructions to use khrisintw/TAIDE-Chat-TaskArithmetic-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use khrisintw/TAIDE-Chat-TaskArithmetic-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="khrisintw/TAIDE-Chat-TaskArithmetic-7B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("khrisintw/TAIDE-Chat-TaskArithmetic-7B") model = AutoModelForCausalLM.from_pretrained("khrisintw/TAIDE-Chat-TaskArithmetic-7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use khrisintw/TAIDE-Chat-TaskArithmetic-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "khrisintw/TAIDE-Chat-TaskArithmetic-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "khrisintw/TAIDE-Chat-TaskArithmetic-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/khrisintw/TAIDE-Chat-TaskArithmetic-7B
- SGLang
How to use khrisintw/TAIDE-Chat-TaskArithmetic-7B 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 "khrisintw/TAIDE-Chat-TaskArithmetic-7B" \ --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": "khrisintw/TAIDE-Chat-TaskArithmetic-7B", "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 "khrisintw/TAIDE-Chat-TaskArithmetic-7B" \ --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": "khrisintw/TAIDE-Chat-TaskArithmetic-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use khrisintw/TAIDE-Chat-TaskArithmetic-7B with Docker Model Runner:
docker model run hf.co/khrisintw/TAIDE-Chat-TaskArithmetic-7B
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,47 +1,47 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model:
|
| 3 |
-
- NousResearch/Llama-2-7b-chat-hf
|
| 4 |
-
- NousResearch/Llama-2-7b-hf
|
| 5 |
-
- taide/TAIDE-LX-7B
|
| 6 |
-
library_name: transformers
|
| 7 |
-
tags:
|
| 8 |
-
- mergekit
|
| 9 |
-
- merge
|
| 10 |
-
|
| 11 |
-
---
|
| 12 |
-
# merged
|
| 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 [task arithmetic](https://arxiv.org/abs/2212.04089) merge method using [NousResearch/Llama-2-7b-hf](https://huggingface.co/NousResearch/Llama-2-7b-hf) as a base.
|
| 20 |
-
|
| 21 |
-
### Models Merged
|
| 22 |
-
|
| 23 |
-
The following models were included in the merge:
|
| 24 |
-
* [NousResearch/Llama-2-7b-chat-hf](https://huggingface.co/NousResearch/Llama-2-7b-chat-hf)
|
| 25 |
-
* [taide/TAIDE-LX-7B](https://huggingface.co/taide/TAIDE-LX-7B)
|
| 26 |
-
|
| 27 |
-
### Configuration
|
| 28 |
-
|
| 29 |
-
The following YAML configuration was used to produce this model:
|
| 30 |
-
|
| 31 |
-
```yaml
|
| 32 |
-
base_model: NousResearch/Llama-2-7b-hf
|
| 33 |
-
dtype: bfloat16
|
| 34 |
-
merge_method: task_arithmetic
|
| 35 |
-
slices:
|
| 36 |
-
- sources:
|
| 37 |
-
- layer_range: [0, 32]
|
| 38 |
-
model: taide/TAIDE-LX-7B
|
| 39 |
-
parameters:
|
| 40 |
-
weight: 1.0
|
| 41 |
-
- layer_range: [0, 32]
|
| 42 |
-
model: NousResearch/Llama-2-7b-chat-hf
|
| 43 |
-
parameters:
|
| 44 |
-
weight: 1.0
|
| 45 |
-
- layer_range: [0, 32]
|
| 46 |
-
model: NousResearch/Llama-2-7b-hf
|
| 47 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- NousResearch/Llama-2-7b-chat-hf
|
| 4 |
+
- NousResearch/Llama-2-7b-hf
|
| 5 |
+
- taide/TAIDE-LX-7B
|
| 6 |
+
library_name: transformers
|
| 7 |
+
tags:
|
| 8 |
+
- mergekit
|
| 9 |
+
- merge
|
| 10 |
+
license: mit
|
| 11 |
+
---
|
| 12 |
+
# merged
|
| 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 [task arithmetic](https://arxiv.org/abs/2212.04089) merge method using [NousResearch/Llama-2-7b-hf](https://huggingface.co/NousResearch/Llama-2-7b-hf) as a base.
|
| 20 |
+
|
| 21 |
+
### Models Merged
|
| 22 |
+
|
| 23 |
+
The following models were included in the merge:
|
| 24 |
+
* [NousResearch/Llama-2-7b-chat-hf](https://huggingface.co/NousResearch/Llama-2-7b-chat-hf)
|
| 25 |
+
* [taide/TAIDE-LX-7B](https://huggingface.co/taide/TAIDE-LX-7B)
|
| 26 |
+
|
| 27 |
+
### Configuration
|
| 28 |
+
|
| 29 |
+
The following YAML configuration was used to produce this model:
|
| 30 |
+
|
| 31 |
+
```yaml
|
| 32 |
+
base_model: NousResearch/Llama-2-7b-hf
|
| 33 |
+
dtype: bfloat16
|
| 34 |
+
merge_method: task_arithmetic
|
| 35 |
+
slices:
|
| 36 |
+
- sources:
|
| 37 |
+
- layer_range: [0, 32]
|
| 38 |
+
model: taide/TAIDE-LX-7B
|
| 39 |
+
parameters:
|
| 40 |
+
weight: 1.0
|
| 41 |
+
- layer_range: [0, 32]
|
| 42 |
+
model: NousResearch/Llama-2-7b-chat-hf
|
| 43 |
+
parameters:
|
| 44 |
+
weight: 1.0
|
| 45 |
+
- layer_range: [0, 32]
|
| 46 |
+
model: NousResearch/Llama-2-7b-hf
|
| 47 |
+
```
|