mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-01 16:24:44 +00:00
kill built_at field in run config
This commit is contained in:
parent
b1d119466e
commit
fa1d29cfdc
15 changed files with 0 additions and 20 deletions
|
@ -1,5 +1,4 @@
|
||||||
version: '2'
|
version: '2'
|
||||||
built_at: '2024-11-01T17:40:45.325529'
|
|
||||||
image_name: local
|
image_name: local
|
||||||
name: bedrock
|
name: bedrock
|
||||||
docker_image: null
|
docker_image: null
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
version: '2'
|
version: '2'
|
||||||
built_at: '2024-10-08T17:40:45.325529'
|
|
||||||
image_name: local
|
image_name: local
|
||||||
docker_image: null
|
docker_image: null
|
||||||
conda_env: local
|
conda_env: local
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
version: '2'
|
version: '2'
|
||||||
built_at: '2024-10-08T17:40:45.325529'
|
|
||||||
image_name: local
|
image_name: local
|
||||||
docker_image: null
|
docker_image: null
|
||||||
conda_env: local
|
conda_env: local
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
version: '2'
|
version: '2'
|
||||||
built_at: '2024-10-08T17:40:45.325529'
|
|
||||||
image_name: local
|
image_name: local
|
||||||
docker_image: null
|
docker_image: null
|
||||||
conda_env: local
|
conda_env: local
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
version: '2'
|
version: '2'
|
||||||
built_at: '2024-10-08T17:40:45.325529'
|
|
||||||
image_name: local
|
image_name: local
|
||||||
docker_image: null
|
docker_image: null
|
||||||
conda_env: local
|
conda_env: local
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
version: '2'
|
version: '2'
|
||||||
built_at: '2024-10-08T17:40:45.325529'
|
|
||||||
image_name: local
|
image_name: local
|
||||||
docker_image: null
|
docker_image: null
|
||||||
conda_env: local
|
conda_env: local
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
version: '2'
|
version: '2'
|
||||||
built_at: '2024-10-08T17:40:45.325529'
|
|
||||||
image_name: local
|
image_name: local
|
||||||
docker_image: null
|
docker_image: null
|
||||||
conda_env: local
|
conda_env: local
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
version: '2'
|
version: '2'
|
||||||
built_at: 2024-11-17 19:33:00
|
|
||||||
image_name: ollama
|
image_name: ollama
|
||||||
docker_image: null
|
docker_image: null
|
||||||
conda_env: null
|
conda_env: null
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
version: '2'
|
version: '2'
|
||||||
built_at: 2024-11-17 19:33:00
|
|
||||||
image_name: remote-vllm
|
image_name: remote-vllm
|
||||||
docker_image: llamastack/distribution-remote-vllm:test-0.0.52rc3
|
docker_image: llamastack/distribution-remote-vllm:test-0.0.52rc3
|
||||||
conda_env: null
|
conda_env: null
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
version: '2'
|
version: '2'
|
||||||
built_at: 2024-11-17 19:33:00
|
|
||||||
image_name: tgi
|
image_name: tgi
|
||||||
docker_image: llamastack/distribution-tgi:test-0.0.52rc3
|
docker_image: llamastack/distribution-tgi:test-0.0.52rc3
|
||||||
conda_env: null
|
conda_env: null
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
version: '2'
|
version: '2'
|
||||||
built_at: '2024-10-08T17:40:45.325529'
|
|
||||||
image_name: local
|
image_name: local
|
||||||
docker_image: null
|
docker_image: null
|
||||||
conda_env: local
|
conda_env: local
|
||||||
|
|
|
@ -193,7 +193,6 @@ class StackBuild(Subcommand):
|
||||||
|
|
||||||
apis = list(build_config.distribution_spec.providers.keys())
|
apis = list(build_config.distribution_spec.providers.keys())
|
||||||
run_config = StackRunConfig(
|
run_config = StackRunConfig(
|
||||||
built_at=datetime.now(),
|
|
||||||
docker_image=(
|
docker_image=(
|
||||||
build_config.name
|
build_config.name
|
||||||
if build_config.image_type == ImageType.docker.value
|
if build_config.image_type == ImageType.docker.value
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
# This source code is licensed under the terms described in the LICENSE file in
|
# This source code is licensed under the terms described in the LICENSE file in
|
||||||
# the root directory of this source tree.
|
# the root directory of this source tree.
|
||||||
|
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
from typing import Dict, List, Optional, Union
|
from typing import Dict, List, Optional, Union
|
||||||
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
|
@ -115,7 +113,6 @@ class Provider(BaseModel):
|
||||||
|
|
||||||
class StackRunConfig(BaseModel):
|
class StackRunConfig(BaseModel):
|
||||||
version: str = LLAMA_STACK_RUN_CONFIG_VERSION
|
version: str = LLAMA_STACK_RUN_CONFIG_VERSION
|
||||||
built_at: datetime
|
|
||||||
|
|
||||||
image_name: str = Field(
|
image_name: str = Field(
|
||||||
...,
|
...,
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import tempfile
|
import tempfile
|
||||||
from datetime import datetime
|
|
||||||
from typing import Any, Dict, List, Optional
|
from typing import Any, Dict, List, Optional
|
||||||
|
|
||||||
from llama_stack.distribution.datatypes import * # noqa: F403
|
from llama_stack.distribution.datatypes import * # noqa: F403
|
||||||
|
@ -37,7 +36,6 @@ async def construct_stack_for_test(
|
||||||
) -> TestStack:
|
) -> TestStack:
|
||||||
sqlite_file = tempfile.NamedTemporaryFile(delete=False, suffix=".db")
|
sqlite_file = tempfile.NamedTemporaryFile(delete=False, suffix=".db")
|
||||||
run_config = dict(
|
run_config = dict(
|
||||||
built_at=datetime.now(),
|
|
||||||
image_name="test-fixture",
|
image_name="test-fixture",
|
||||||
apis=apis,
|
apis=apis,
|
||||||
providers=providers,
|
providers=providers,
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
# This source code is licensed under the terms described in the LICENSE file in
|
# This source code is licensed under the terms described in the LICENSE file in
|
||||||
# the root directory of this source tree.
|
# the root directory of this source tree.
|
||||||
|
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
@ -87,7 +85,6 @@ class RunConfigSettings(BaseModel):
|
||||||
return StackRunConfig(
|
return StackRunConfig(
|
||||||
image_name=name,
|
image_name=name,
|
||||||
docker_image=docker_image,
|
docker_image=docker_image,
|
||||||
built_at=datetime.now().strftime("%Y-%m-%d %H:%M"),
|
|
||||||
apis=list(apis),
|
apis=list(apis),
|
||||||
providers=provider_configs,
|
providers=provider_configs,
|
||||||
metadata_store=SqliteKVStoreConfig.sample_run_config(
|
metadata_store=SqliteKVStoreConfig.sample_run_config(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue