forked from phoenix-oss/llama-stack-mirror
openapi gen + precommit fix
This commit is contained in:
parent
39f4dfbf50
commit
5cb0ad7d7f
4 changed files with 11 additions and 32 deletions
|
@ -58,7 +58,7 @@ Breaking down the demo app, this section will show the core pieces that are used
|
||||||
### Setup Remote Inferencing
|
### Setup Remote Inferencing
|
||||||
Start a Llama Stack server on localhost. Here is an example of how you can do this using the firework.ai distribution:
|
Start a Llama Stack server on localhost. Here is an example of how you can do this using the firework.ai distribution:
|
||||||
```
|
```
|
||||||
conda create -n stack-fireworks python=3.10
|
conda create -n stack-fireworks python=3.10
|
||||||
conda activate stack-fireworks
|
conda activate stack-fireworks
|
||||||
pip install --no-cache llama-stack==0.1.4
|
pip install --no-cache llama-stack==0.1.4
|
||||||
llama stack build --template fireworks --image-type conda
|
llama stack build --template fireworks --image-type conda
|
||||||
|
|
|
@ -50,6 +50,4 @@ class DatasetIO(Protocol):
|
||||||
...
|
...
|
||||||
|
|
||||||
@webmethod(route="/datasets/{dataset_id}/append-rows", method="POST")
|
@webmethod(route="/datasets/{dataset_id}/append-rows", method="POST")
|
||||||
async def append_rows(
|
async def append_rows(self, dataset_id: str, rows: List[Dict[str, Any]]) -> None: ...
|
||||||
self, dataset_id: str, rows: List[Dict[str, Any]]
|
|
||||||
) -> None: ...
|
|
||||||
|
|
|
@ -203,18 +203,10 @@ def get_distribution_template() -> DistributionTemplate:
|
||||||
DatasetInput(
|
DatasetInput(
|
||||||
dataset_id="bfcl",
|
dataset_id="bfcl",
|
||||||
provider_id="huggingface",
|
provider_id="huggingface",
|
||||||
url=URL(uri="https://huggingface.co/datasets/llamastack/bfcl_v3"),
|
purpose=DatasetPurpose.eval_messages_answer,
|
||||||
metadata={
|
source=URIDataSource(
|
||||||
"path": "llamastack/bfcl_v3",
|
uri="huggingface://llamastack/bfcl_v3?split=train",
|
||||||
"split": "train",
|
),
|
||||||
},
|
|
||||||
dataset_schema={
|
|
||||||
"function": {"type": "string"},
|
|
||||||
"language": {"type": "string"},
|
|
||||||
"ground_truth": {"type": "string"},
|
|
||||||
"id": {"type": "string"},
|
|
||||||
"chat_completion_input": {"type": "string"},
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -186,22 +186,11 @@ datasets:
|
||||||
metadata: {}
|
metadata: {}
|
||||||
dataset_id: math_500
|
dataset_id: math_500
|
||||||
provider_id: huggingface
|
provider_id: huggingface
|
||||||
- dataset_schema:
|
- purpose: eval/messages-answer
|
||||||
function:
|
source:
|
||||||
type: string
|
type: uri
|
||||||
language:
|
uri: huggingface://llamastack/bfcl_v3?split=train
|
||||||
type: string
|
metadata: {}
|
||||||
ground_truth:
|
|
||||||
type: string
|
|
||||||
id:
|
|
||||||
type: string
|
|
||||||
chat_completion_input:
|
|
||||||
type: string
|
|
||||||
url:
|
|
||||||
uri: https://huggingface.co/datasets/llamastack/bfcl_v3
|
|
||||||
metadata:
|
|
||||||
path: llamastack/bfcl_v3
|
|
||||||
split: train
|
|
||||||
dataset_id: bfcl
|
dataset_id: bfcl
|
||||||
provider_id: huggingface
|
provider_id: huggingface
|
||||||
scoring_fns: []
|
scoring_fns: []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue