Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Apr 3, 2024
1 parent dce1ae2 commit de20af2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/Serval.E2ETests/ServalApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public async Task NmtBatch()
[Test]
public async Task NmtQueueMultiple()
{
const int NUM_ENGINES = 9;
const int NUM_WORKERS = 1;
const int NUM_ENGINES = 10;
const int NUM_WORKERS = 8;
string[] engineIds = new string[NUM_ENGINES];
for (int i = 0; i < NUM_ENGINES; i++)
{
Expand Down
11 changes: 10 additions & 1 deletion tests/Serval.E2ETests/ServalClientHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,16 @@ public TranslationBuildConfig InitTranslationBuildConfig()
{
Pretranslate = [],
TrainOn = null,
Options = "{\"max_steps\":10, \"train_params\": {\"per_device_train_batch_size\":4}}"
Options = """
{
"max_steps": 10,
"parent_model_name": "hf-internal-testing/tiny-random-nllb",
"train_params":
{
"per_device_train_batch_size": 4
}
}
"""
};
return TranslationBuildConfig;
}
Expand Down

0 comments on commit de20af2

Please sign in to comment.