Skip to content

Commit

Permalink
added hf configs
Browse files Browse the repository at this point in the history
  • Loading branch information
onadegibert committed Sep 20, 2024
1 parent 221451c commit 9f60d34
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 29 deletions.
12 changes: 4 additions & 8 deletions configs/hf/config.hf.hplt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,17 @@
###

experiment:
dirname: test
name: hf
dirname: hf
name: hplt
langpairs:
- et-en
split-length: 10000

split-length: 1000
best-model: perplexity

huggingface:
modelname: "HPLT/translate-et-en-v1.0-hplt_opus"
modelclass: "transformers.AutoModelForSeq2SeqLM"
config:
top_k: 50
top_p: 0.90
temperature: 0.1
max_new_tokens: 128

datasets:
train:
Expand Down
6 changes: 1 addition & 5 deletions configs/hf/config.hf.nllb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ experiment:
dirname: hf
name: nllb
langpairs:
- en-fi
- en-et

parallel-max-sentences: 1000
split-length: 10000
spm-sample-size: 400
spm-vocab-size: 3000
split-length: 1000

best-model: perplexity

Expand Down
6 changes: 1 addition & 5 deletions configs/hf/config.hf.opus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ experiment:
dirname: hf
name: opus
langpairs:
- en-fi
- en-et

parallel-max-sentences: 1000
split-length: 10000
spm-sample-size: 400
spm-vocab-size: 3000
split-length: 1000

best-model: perplexity

Expand Down
9 changes: 4 additions & 5 deletions configs/hf/config.hf.t5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ experiment:
langpairs:
- en-de

parallel-max-sentences: 1000
split-length: 10000
spm-sample-size: 400
spm-vocab-size: 3000
split-length: 1000

best-model: perplexity

Expand All @@ -24,10 +21,12 @@ experiment:
en: English
de: German
prompt: "Translate {src_lang} to {tgt_lang}: {source}"
config:
max_new_tokens: 150

datasets:
train:
- ELRC-3293-EUROPARL_covid__v1
- ELRC_2922__v1
devtest:
- flores_dev
test:
Expand Down
8 changes: 2 additions & 6 deletions configs/hf/config.utter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ experiment:
dirname: hf
name: euroLLM
langpairs:
- en-fi
- en-et

parallel-max-sentences: 1000
split-length: 10000
spm-sample-size: 400
spm-vocab-size: 3000

split-length: 1000

best-model: perplexity

huggingface:
Expand Down

0 comments on commit 9f60d34

Please sign in to comment.