Skip to content

Commit

Permalink
[TNX][CI] setup java for tnx models (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qing Lan authored Jan 11, 2024
1 parent 77e7b7d commit 63954bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/llm_inf2_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ jobs:
sudo rm -rf /home/ubuntu/actions-runner/_work/_tool/Java_Corretto_jdk/
echo "wait dpkg lock..."
while sudo fuser /var/{lib/{dpkg,apt/lists},cache/apt/archives}/lock >/dev/null 2>&1; do sleep 5; done
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 17
- name: Set up Python3
uses: actions/setup-python@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/llm/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ def test_handler_rolling_batch(model, model_spec):
# dryrun phase
req = {"inputs": batch_generation(1)[0]}
seq_length = 100
params = {"do_sample": True, "max_new_tokens": seq_length}
params = {"do_sample": True, "max_new_tokens": seq_length, "details": True}
req["parameters"] = params
logging.info(f"req {req}")
res = send_json(req)
Expand Down
6 changes: 4 additions & 2 deletions tests/integration/llm/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,15 +505,17 @@
"option.max_rolling_batch_size": 4,
"option.rolling_batch": 'auto',
"option.model_loading_timeout": 2400,
"option.load_split_model": True
"option.load_split_model": True,
"option.output_formatter": "jsonlines"
},
"mistral-7b-rb": {
"option.model_id": "s3://djl-llm/mistral-7b/",
"option.tensor_parallel_degree": 4,
"option.n_positions": 512,
"option.max_rolling_batch_size": 4,
"option.rolling_batch": 'auto',
"option.model_loading_timeout": 2400
"option.model_loading_timeout": 2400,
"option.output_formatter": "jsonlines"
}
}

Expand Down

0 comments on commit 63954bb

Please sign in to comment.