# Runtime source overlay for the experimental single-P150 Qwen3.5-9B build. # The pinned public base supplies the compiler, dependencies and configured build tree. FROM ghcr.io/tenstorrent/tt-inference-server/vllm-tt-metal-src-release-ubuntu-22.04-amd64@sha256:710de20012a5417ec632e9d1db33b45f81fa9d9961da882a94868d15c5f99735 USER root COPY --chown=1000:1000 overlay/ / COPY licenses/ /opt/qwen35-tt-runtime/licenses/ USER 1000:1000 WORKDIR /home/container_app_user/tt-metal ARG BUILD_JOBS=16 # Invalidate inherited host objects even if a downloader preserves old source mtimes. RUN touch \ ttnn/cpp/ttnn/operations/matmul/device/factory/matmul_multicore_reuse_mcast_1d_program_factory.cpp \ ttnn/cpp/ttnn/operations/transformer/chunk_gated_delta_rule/chunk_gated_delta_rule.cpp \ ttnn/cpp/ttnn/operations/transformer/chunk_gated_delta_rule/chunk_gated_delta_rule.hpp \ ttnn/cpp/ttnn/operations/transformer/chunk_gated_delta_rule/chunk_gated_delta_rule_nanobind.cpp \ ttnn/cpp/ttnn/operations/transformer/chunk_gated_delta_rule/device/chunk_gated_delta_rule_device_operation.cpp \ ttnn/cpp/ttnn/operations/transformer/chunk_gated_delta_rule/device/chunk_gated_delta_rule_device_operation.hpp \ ttnn/cpp/ttnn/operations/transformer/chunk_gated_delta_rule/device/chunk_gated_delta_rule_device_operation_types.hpp \ ttnn/cpp/ttnn/operations/transformer/chunk_gated_delta_rule/device/chunk_gated_delta_rule_program_factory.cpp \ ttnn/cpp/ttnn/operations/transformer/chunk_gated_delta_rule/device/chunk_gated_delta_rule_program_factory.hpp \ ttnn/cpp/ttnn/operations/transformer/gated_delta_attn/device/gated_delta_attn_program_factory.cpp \ && cmake --build build_Release --target ttnn --parallel "${BUILD_JOBS}" \ && cp build_Release/ttnn/_ttnncpp.so build/lib/_ttnncpp.so \ && cp build_Release/ttnn/_ttnn.so build/lib/_ttnn.so \ && cp build_Release/ttnn/_ttnn.so ttnn/ttnn/_ttnn.so # Model/JIT kernels stay in the editable source tree used by the inherited TTNN install. # Launch arguments, feature flags, model files and caches are supplied separately. WORKDIR /home/container_app_user/app/src