mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-19 22:02:06 +00:00
Run pre-commit run --all-files
to fix CI (#2933)
This commit is contained in:
parent
bdb3e488e4
commit
64a33c1f05
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -65,7 +65,7 @@ jobs:
|
|||||||
export runs_on="aws-g6-12xl-plus-priv-cache"
|
export runs_on="aws-g6-12xl-plus-priv-cache"
|
||||||
export platform=""
|
export platform=""
|
||||||
export extra_pytest=""
|
export extra_pytest=""
|
||||||
export target="nil"
|
export target="nil"
|
||||||
;;
|
;;
|
||||||
cuda-trtllm)
|
cuda-trtllm)
|
||||||
export dockerfile="Dockerfile_trtllm"
|
export dockerfile="Dockerfile_trtllm"
|
||||||
|
@ -153,4 +153,4 @@ COPY --from=trt-builder /usr/local/tensorrt /usr/local/tensorrt
|
|||||||
COPY --from=tgi-builder /usr/local/tgi /usr/local/tgi
|
COPY --from=tgi-builder /usr/local/tgi /usr/local/tgi
|
||||||
|
|
||||||
# Basically we copy from target/debug instead of target/release
|
# Basically we copy from target/debug instead of target/release
|
||||||
COPY --from=tgi-builder /usr/src/text-generation-inference/target/debug/text-generation-backends-trtllm /usr/local/tgi/bin/text-generation-launcher
|
COPY --from=tgi-builder /usr/src/text-generation-inference/target/debug/text-generation-backends-trtllm /usr/local/tgi/bin/text-generation-launcher
|
||||||
|
@ -129,4 +129,4 @@ if (${TGI_TRTLLM_BACKEND_BUILD_TESTS} AND CMAKE_BUILD_TYPE MATCHES "Debug")
|
|||||||
# include(CTest)
|
# include(CTest)
|
||||||
# include(Catch)
|
# include(Catch)
|
||||||
# catch_discover_tests(tgi_trtllm_backend_tests)
|
# catch_discover_tests(tgi_trtllm_backend_tests)
|
||||||
endif ()
|
endif ()
|
||||||
|
@ -247,4 +247,4 @@ fn main() {
|
|||||||
|
|
||||||
// Backend
|
// Backend
|
||||||
println!("cargo:rustc-link-lib=static={}", &BACKEND_DEPS);
|
println!("cargo:rustc-link-lib=static={}", &BACKEND_DEPS);
|
||||||
}
|
}
|
||||||
|
@ -8,9 +8,7 @@ AWS_S3_CACHING_VARIABLES = {
|
|||||||
"SCCACHE_BUCKET": "s3_bucket_name",
|
"SCCACHE_BUCKET": "s3_bucket_name",
|
||||||
}
|
}
|
||||||
|
|
||||||
ALL_CACHING_STORAGE_VARIABLES = {
|
ALL_CACHING_STORAGE_VARIABLES = {"AWS_S3_CACHING_VARIABLES"}
|
||||||
"AWS_S3_CACHING_VARIABLES"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def setup_sccache_locally():
|
def setup_sccache_locally():
|
||||||
@ -29,15 +27,19 @@ def setup_sccache_for_s3():
|
|||||||
|
|
||||||
print("Setting up AWS S3 Caching Layer")
|
print("Setting up AWS S3 Caching Layer")
|
||||||
for envvar in AWS_S3_CACHING_VARIABLES.keys():
|
for envvar in AWS_S3_CACHING_VARIABLES.keys():
|
||||||
if not envvar in environ or not environ[envvar] or len(environ[envvar]) == 0:
|
if envvar not in environ or not environ[envvar] or len(environ[envvar]) == 0:
|
||||||
print(f"Missing definition for environment variable {envvar}")
|
print(f"Missing definition for environment variable {envvar}")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = ArgumentParser("TensorRT-LLM Build Caching Setup")
|
parser = ArgumentParser("TensorRT-LLM Build Caching Setup")
|
||||||
|
|
||||||
parser.add_argument("--is-gha-build", type=str, default="FALSE",
|
parser.add_argument(
|
||||||
help="Indicate if the build is from Github Actions")
|
"--is-gha-build",
|
||||||
|
type=str,
|
||||||
|
default="FALSE",
|
||||||
|
help="Indicate if the build is from Github Actions",
|
||||||
|
)
|
||||||
|
|
||||||
# Parse args
|
# Parse args
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
Loading…
Reference in New Issue
Block a user