Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "truss"
version = "0.13.3"
version = "0.13.4"
description = "A seamless bridge from model development to model delivery"
authors = [
{ name = "Pankaj Gupta", email = "no-reply@baseten.co" },
Expand Down
8 changes: 7 additions & 1 deletion truss/base/trt_llm_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,17 @@ class VersionsOverrides(PydanticTrTBaseModel):
engine_builder_version: Optional[str] = None
briton_version: Optional[str] = None
bei_version: Optional[str] = None
bei_bert_version: Optional[str] = None
v2_llm_version: Optional[str] = None

@model_validator(mode="before")
def version_must_start_with_number(cls, data):
for field in ["engine_builder_version", "briton_version", "bei_version"]:
for field in [
"engine_builder_version",
"briton_version",
"bei_version",
"bei_bert_version",
]:
v = data.get(field)
if v is not None and (not v or not v[0].isdigit()):
raise ValueError(f"{field} must start with a number")
Expand Down
9 changes: 0 additions & 9 deletions truss/templates/base.Dockerfile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,6 @@ RUN {{ python_exec_path }} -c "import sys; \
|| { echo "ERROR: Supplied base image does not have {{ min_supported_python_version_in_custom_base_image }} <= python <= {{ max_supported_python_version_in_custom_base_image }}"; exit 1; }
{% endblock %}

{# mirrors.ubuntu.com is a redirector service (uses mirrors.txt) that provides the best mirror based on location #}
{# Handle old format (Ubuntu 22.04 and earlier): /etc/apt/sources.list, and new format (Ubuntu 24.04+): /etc/apt/sources.list.d/ubuntu.sources #}
{%- set ubuntu_sources_list_files = ["/etc/apt/sources.list", "/etc/apt/sources.list.d/ubuntu.sources"] %}
{%- for ubuntu_sources_list_file in ubuntu_sources_list_files %}
RUN if [ -f {{ ubuntu_sources_list_file }} ]; then \
sed -i.bak 's|http://archive.ubuntu.com/ubuntu/|mirror://mirrors.ubuntu.com/mirrors.txt|g' {{ ubuntu_sources_list_file }}; \
fi
{%- endfor %}

{% block install_tools %}
{# Install curl if not already present. Required for uv installation and truss-transfer-cli. #}
RUN command -v curl >/dev/null 2>&1 || (apt update && apt install -y curl)
Expand Down
6 changes: 0 additions & 6 deletions truss/tests/test_data/server.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ RUN /usr/local/bin/python3 -c "import sys; \
and sys.version_info.minor <= 14 \
else sys.exit(1)" \
|| { echo "ERROR: Supplied base image does not have 3.9 <= python <= 3.14"; exit 1; }
RUN if [ -f /etc/apt/sources.list ]; then \
sed -i.bak 's|http://archive.ubuntu.com/ubuntu/|mirror://mirrors.ubuntu.com/mirrors.txt|g' /etc/apt/sources.list; \
fi
RUN if [ -f /etc/apt/sources.list.d/ubuntu.sources ]; then \
sed -i.bak 's|http://archive.ubuntu.com/ubuntu/|mirror://mirrors.ubuntu.com/mirrors.txt|g' /etc/apt/sources.list.d/ubuntu.sources; \
fi
RUN command -v curl >/dev/null 2>&1 || (apt update && apt install -y curl)
RUN if ! command -v uv >/dev/null 2>&1; then \
curl -LsSf --retry 5 --retry-delay 5 https://astral.sh/uv/0.8.22/install.sh | sh && \
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading