mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-20 02:46:29 +00:00
persist local hf datasetio
This commit is contained in:
parent
e90ea1ab1e
commit
04ff184b34
2 changed files with 31 additions and 3 deletions
|
|
@ -3,7 +3,15 @@
|
|||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
from llama_stack.apis.datasetio import * # noqa: F401, F403
|
||||
from llama_stack.distribution.utils.config_dirs import RUNTIME_BASE_DIR
|
||||
from llama_stack.providers.utils.kvstore.config import (
|
||||
KVStoreConfig,
|
||||
SqliteKVStoreConfig,
|
||||
)
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class HuggingfaceDatasetIOConfig(BaseModel): ...
|
||||
class HuggingfaceDatasetIOConfig(BaseModel):
|
||||
kvstore: KVStoreConfig = SqliteKVStoreConfig(
|
||||
db_path=(RUNTIME_BASE_DIR / "huggingface_datasetio.db").as_posix()
|
||||
) # Uses SQLite config specific to FAISS storage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue