Repository navigation
Bringup/ling 3.0 tiny #2677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Bringup/ling 3.0 tiny #2677
Changes from all commits
f7a3c46
2e38488
0ec39b4
e082284
4bd17d6
7246979
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| """bailing hybrid family package.""" |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| numpy | ||
| safetensors | ||
| torch | ||
| transformers==4.57.6 | ||
| fla-core==0.6.0 | ||
| einops | ||
| accelerate | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| find_package(ICU REQUIRED COMPONENTS uc i18n) | ||
| add_library(trtmc_model_bailing_hybrid SHARED bpe_tokenizer.cpp plugin.cpp) | ||
| target_include_directories(trtmc_model_bailing_hybrid PRIVATE ${PROJECT_SOURCE_DIR} | ||
| ${PROJECT_SOURCE_DIR}/core/runtime/include) | ||
| target_include_directories(trtmc_model_bailing_hybrid SYSTEM PRIVATE ${TRTMC_CUDA_INCLUDE_DIR}) | ||
| target_link_libraries(trtmc_model_bailing_hybrid PRIVATE trtmc_core nlohmann_json::nlohmann_json | ||
| ${TRTMC_CUDART_LIBRARY} ICU::uc ICU::i18n) | ||
|
Comment on lines
+9
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ling plugin links ICU, but the release wheel neither bundles nor declares it.
On a host without the ICU shared libraries, the loader's Either bundle the ICU libraries through a repair step, or document ICU as a host requirement and check for it before the family loads. Apply the same decision to the other family targets that link ICU, such as
|
||
| target_compile_options(trtmc_model_bailing_hybrid PRIVATE -Wall -Wextra -Wpedantic) | ||
| set_target_properties(trtmc_model_bailing_hybrid PROPERTIES | ||
| LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" BUILD_RPATH "\$ORIGIN" INSTALL_RPATH "\$ORIGIN") | ||
| install(TARGETS trtmc_model_bailing_hybrid LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
|
|
||
| if(TRTMC_BUILD_TESTS) | ||
| add_executable(test_bailing_hybrid_tokenizer ${PROJECT_SOURCE_DIR}/families/bailing_hybrid/tests/cpp/test_tokenizer.cpp) | ||
| target_include_directories(test_bailing_hybrid_tokenizer PRIVATE ${PROJECT_SOURCE_DIR}) | ||
| target_link_libraries(test_bailing_hybrid_tokenizer PRIVATE trtmc_model_bailing_hybrid nlohmann_json::nlohmann_json) | ||
| set_target_properties(test_bailing_hybrid_tokenizer PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") | ||
| add_executable(test_bailing_hybrid_runtime ${PROJECT_SOURCE_DIR}/families/bailing_hybrid/tests/cpp/test_runtime.cpp) | ||
| target_link_libraries(test_bailing_hybrid_runtime PRIVATE trtmc_c nlohmann_json::nlohmann_json) | ||
| set_target_properties(test_bailing_hybrid_runtime PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") | ||
| endif() | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep the Ling family's root pin from replacing the shared Transformers version.
families/bailing_hybrid/requirements.txt:4pinstransformers==4.57.6, butpyproject.toml:25requirestransformers==5.2.0. Community GPU smoke installs each selected family's root requirements into the same interpreter, with no separate environment. Ifbailing_hybridruns before other families, its pin replaces5.2.0for those later families. Shared smoke families such asbert,gpt2,qwen,timm_vit, andwhisperare selected with it, so they can run against the wrong Transformers version.Remove the exact
transformers==4.57.6pin from the rootfamilies/bailing_hybrid/requirements.txt. Keep the reference pin only infamilies/bailing_hybrid/tests/requirements.txt, and install that file only into the reference's isolated environment. Confirm that the family runtime works with the base version before merging.A model family must be independently testable and revertible, and its install must not change the environment that other families use.
Suggested fix
safetensors>=0.4 numpy>=1.24 torch>=2.6 -transformers==4.57.6 fla-core==0.6.0 einops accelerateCommittable suggestion
OSV Scanner (2.7.0)
[HIGH] 4-4: transformers 4.57.6: undefined
(PYSEC-2025-217)
[HIGH] 4-4: transformers 4.57.6: undefined
(PYSEC-2026-2288)
[HIGH] 4-4: transformers 4.57.6: undefined
(PYSEC-2026-2289)
[CRITICAL] 4-4: transformers 4.57.6: undefined
(PYSEC-2026-2290)
[HIGH] 4-4: transformers 4.57.6: Transformers save_pretrained path traversal allows arbitrary file writes through chat template names
(PYSEC-2026-3929)
[HIGH] 4-4: transformers 4.57.6: Hugging Face Transformers downloads custom generation code before trust consent
(PYSEC-2026-4174)
[HIGH] 4-4: transformers 4.57.6: HuggingFace transformers vulnerable to remote code execution
(GHSA-29pf-2h5f-8g72)
[HIGH] 4-4: transformers 4.57.6: HuggingFace Transformers allows for arbitrary code execution in the
Trainerclass(GHSA-69w3-r845-3855)
[CRITICAL] 4-4: transformers 4.57.6: huggingface/transformers: Arbitrary Code Execution During Model Initialization in the LightGlue Model Loading Path
(GHSA-fgcw-684q-jj6r)
[HIGH] 4-4: transformers 4.57.6: Hugging Face Transformers downloads custom generation code before trust consent
(GHSA-x9r9-c232-4q39)
[HIGH] 4-4: transformers 4.57.6: Transformers save_pretrained path traversal allows arbitrary file writes through chat template names
(GHSA-xrqw-3rrv-vx5w)