Skip to content

Commit

Permalink
[Fix] Fix llama configs (open-compass#72)
Browse files Browse the repository at this point in the history
Co-authored-by: Leymore <zfz-960727@163.com>
  • Loading branch information
gaotongxiao and Leymore authored Jul 25, 2023
1 parent e9cdb24 commit 3715be6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions configs/models/hf_llama_13b.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from opencompass.models import HuggingFaceCausalLM


models = [
# LLaMA 13B
dict(
type=HuggingFaceCausalLM,
abbr='llama-13b-hf',
path="decapoda-research/llama-13b-hf",
tokenizer_path='decapoda-research/llama-13b-hf',
path="huggyllama/llama-13b",
tokenizer_path='huggyllama/llama-13b',
tokenizer_kwargs=dict(padding_side='left',
truncation_side='left',
use_fast=False,
Expand Down
5 changes: 2 additions & 3 deletions configs/models/hf_llama_30b.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from opencompass.models import HuggingFaceCausalLM


models = [
# LLaMA 30B
dict(
type=HuggingFaceCausalLM,
abbr='llama-30b-hf',
path="decapoda-research/llama-30b-hf",
tokenizer_path='decapoda-research/llama-30b-hf',
path="huggyllama/llama-30b",
tokenizer_path='huggyllama/llama-30b',
tokenizer_kwargs=dict(padding_side='left',
truncation_side='left',
use_fast=False,
Expand Down
5 changes: 2 additions & 3 deletions configs/models/hf_llama_65b.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from opencompass.models import HuggingFaceCausalLM


models = [
# LLaMA 65B
dict(
type=HuggingFaceCausalLM,
abbr='llama-65b-hf',
path="decapoda-research/llama-65b-hf",
tokenizer_path='decapoda-research/llama-65b-hf',
path="huggyllama/llama-65b",
tokenizer_path='huggyllama/llama-65b',
tokenizer_kwargs=dict(padding_side='left',
truncation_side='left',
use_fast=False,
Expand Down
5 changes: 2 additions & 3 deletions configs/models/hf_llama_7b.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from opencompass.models import HuggingFaceCausalLM


models = [
# LLaMA 7B
dict(
type=HuggingFaceCausalLM,
abbr='llama-7b-hf',
path="decapoda-research/llama-7b-hf",
tokenizer_path='decapoda-research/llama-7b-hf',
path="huggyllama/llama-7b",
tokenizer_path='huggyllama/llama-7b',
tokenizer_kwargs=dict(padding_side='left',
truncation_side='left',
use_fast=False,
Expand Down

0 comments on commit 3715be6

Please sign in to comment.