forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #350 from ROCm/upstream_merge_25_1_6
Upstream merge 25 1 6
- Loading branch information
Showing
555 changed files
with
31,168 additions
and
16,735 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import argparse | ||
import os | ||
|
||
template = """<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<h1>Links for vLLM</h1/> | ||
<a href="../{wheel_html_escaped}">{wheel}</a><br/> | ||
</body> | ||
</html> | ||
""" | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument("--wheel", help="The wheel path.", required=True) | ||
args = parser.parse_args() | ||
|
||
filename = os.path.basename(args.wheel) | ||
|
||
with open("index.html", "w") as f: | ||
print(f"Generated index.html for {args.wheel}") | ||
# cloudfront requires escaping the '+' character | ||
f.write( | ||
template.format(wheel=filename, | ||
wheel_html_escaped=filename.replace("+", "%2B"))) |
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
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,28 @@ | ||
#!/bin/bash | ||
|
||
# This script build the GH200 docker image and run the offline inference inside the container. | ||
# It serves a sanity check for compilation and basic model usage. | ||
set -ex | ||
|
||
# Skip the new torch installation during build since we are using the specified version for arm64 in the Dockerfile | ||
python3 use_existing_torch.py | ||
|
||
# Try building the docker image | ||
DOCKER_BUILDKIT=1 docker build . \ | ||
--target vllm-openai \ | ||
--platform "linux/arm64" \ | ||
-t gh200-test \ | ||
--build-arg max_jobs=66 \ | ||
--build-arg nvcc_threads=2 \ | ||
--build-arg torch_cuda_arch_list="9.0+PTX" \ | ||
--build-arg vllm_fa_cmake_gpu_arches="90-real" | ||
|
||
# Setup cleanup | ||
remove_docker_container() { docker rm -f gh200-test || true; } | ||
trap remove_docker_container EXIT | ||
remove_docker_container | ||
|
||
# Run the image and test offline inference | ||
docker run --name gh200-test --gpus=all --entrypoint="" gh200-test bash -c ' | ||
python3 examples/offline_inference.py | ||
' |
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
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
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
Oops, something went wrong.