-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Inference] Add validated models for Gaudi (#269)
* add validated models for Gaudi * nit * fix * remove * add config * nit * remove prompt and add gpt2 * check and add all template, remove bloom-560m, add mixtral, change Qwen to version 1.5 * nit * fix * fix * fix * remove default template * fix when list length is 1 * fix * fix target * change cache dir * remove Mixtral * change to 8 cards * remove Qwen and fix * revert and add Qwen&Mixtral back * nit * add Qwen1.5-7B-Chat * add Qwen2-7B-Instruct * remove several models * add falcon qwen linear all reduce to hpu_predictor * nit --------- Signed-off-by: Yizhong Zhang <[email protected]>
- Loading branch information
Showing
18 changed files
with
174 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
port: 8000 | ||
name: CodeLlama-7b-hf | ||
route_prefix: /CodeLlama-7b-hf | ||
num_replicas: 1 | ||
cpus_per_worker: 8 | ||
hpus_per_worker: 1 | ||
device: hpu | ||
model_description: | ||
model_id_or_path: codellama/CodeLlama-7b-hf | ||
tokenizer_name_or_path: codellama/CodeLlama-7b-hf | ||
chat_template: "llm_on_ray/inference/models/templates/template_codellama.jinja" | ||
config: | ||
use_auth_token: '' |
12 changes: 12 additions & 0 deletions
12
llm_on_ray/inference/models/hpu/Qwen2-7B-Instruct-hpu.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
port: 8000 | ||
name: Qwen2-7B-Instruct | ||
route_prefix: /Qwen2-7B-Instruct | ||
num_replicas: 1 | ||
cpus_per_worker: 8 | ||
hpus_per_worker: 1 | ||
device: hpu | ||
model_description: | ||
model_id_or_path: Qwen/Qwen2-7B-Instruct | ||
tokenizer_name_or_path: Qwen/Qwen2-7B-Instruct | ||
config: | ||
use_auth_token: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
port: 8000 | ||
name: bloom-7b1 | ||
route_prefix: /bloom-7b1 | ||
num_replicas: 1 | ||
cpus_per_worker: 8 | ||
hpus_per_worker: 1 | ||
device: hpu | ||
model_description: | ||
model_id_or_path: bigscience/bloom-7b1 | ||
tokenizer_name_or_path: bigscience/bloom-7b1 | ||
config: | ||
use_auth_token: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
port: 8000 | ||
name: falcon-40b | ||
route_prefix: /falcon-40b | ||
num_replicas: 1 | ||
cpus_per_worker: 8 | ||
hpus_per_worker: 1 | ||
deepspeed: true | ||
workers_per_group: 8 | ||
device: hpu | ||
model_description: | ||
model_id_or_path: tiiuae/falcon-40b | ||
tokenizer_name_or_path: tiiuae/falcon-40b | ||
config: | ||
use_auth_token: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
port: 8000 | ||
name: falcon-7b | ||
route_prefix: /falcon-7b | ||
num_replicas: 1 | ||
cpus_per_worker: 8 | ||
hpus_per_worker: 1 | ||
device: hpu | ||
model_description: | ||
model_id_or_path: tiiuae/falcon-7b | ||
tokenizer_name_or_path: tiiuae/falcon-7b | ||
config: | ||
use_auth_token: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
port: 8000 | ||
name: gemma-2b | ||
route_prefix: /gemma-2b | ||
num_replicas: 1 | ||
cpus_per_worker: 8 | ||
hpus_per_worker: 1 | ||
device: hpu | ||
model_description: | ||
model_id_or_path: google/gemma-2b | ||
tokenizer_name_or_path: google/gemma-2b | ||
chat_template: "llm_on_ray/inference/models/templates/template_gemma.jinja" | ||
config: | ||
use_auth_token: ' ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
port: 8000 | ||
name: gpt-j-6b | ||
route_prefix: /gpt-j-6b | ||
num_replicas: 1 | ||
cpus_per_worker: 8 | ||
hpus_per_worker: 1 | ||
device: hpu | ||
model_description: | ||
model_id_or_path: EleutherAI/gpt-j-6b | ||
tokenizer_name_or_path: EleutherAI/gpt-j-6b | ||
gpt_base_model: true | ||
config: | ||
use_auth_token: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
port: 8000 | ||
name: gpt2 | ||
route_prefix: /gpt2 | ||
num_replicas: 1 | ||
cpus_per_worker: 8 | ||
hpus_per_worker: 1 | ||
device: hpu | ||
model_description: | ||
model_id_or_path: gpt2 | ||
tokenizer_name_or_path: gpt2 | ||
chat_template: "llm_on_ray/inference/models/templates/template_gpt2.jinja" | ||
gpt_base_model: true | ||
config: | ||
use_auth_token: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
port: 8000 | ||
name: mistral-7b-v0.1 | ||
route_prefix: /mistral-7b-v0.1 | ||
num_replicas: 1 | ||
cpus_per_worker: 8 | ||
hpus_per_worker: 1 | ||
device: hpu | ||
model_description: | ||
model_id_or_path: mistralai/Mistral-7B-v0.1 | ||
tokenizer_name_or_path: mistralai/Mistral-7B-v0.1 | ||
chat_template: "llm_on_ray/inference/models/templates/template_mistral.jinja" | ||
config: | ||
use_auth_token: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
port: 8000 | ||
name: mpt-7b | ||
route_prefix: /mpt-7b | ||
num_replicas: 1 | ||
cpus_per_worker: 8 | ||
hpus_per_worker: 1 | ||
device: hpu | ||
model_description: | ||
model_id_or_path: EleutherAI/gpt-neox-20b | ||
tokenizer_name_or_path: EleutherAI/gpt-neox-20b | ||
config: | ||
use_auth_token: '' | ||
trust_remote_code: true |
19 changes: 19 additions & 0 deletions
19
llm_on_ray/inference/models/hpu/neural-chat-7b-v3-3-hpu.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
port: 8000 | ||
name: neural-chat-7b-v3-3 | ||
route_prefix: /neural-chat-7b-v3-3 | ||
num_replicas: 1 | ||
cpus_per_worker: 0 | ||
gpus_per_worker: 0 | ||
hpus_per_worker: 1 | ||
deepspeed: false | ||
workers_per_group: 2 | ||
device: hpu | ||
ipex: | ||
enabled: false | ||
precision: bf16 | ||
model_description: | ||
model_id_or_path: Intel/neural-chat-7b-v3-3 | ||
tokenizer_name_or_path: Intel/neural-chat-7b-v3-3 | ||
chat_template: "llm_on_ray/inference/models/templates/template_neuralchat.jinja" | ||
config: | ||
use_auth_token: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters