mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
rename toolchain/ --> llama_toolchain/
This commit is contained in:
parent
d95f5f863d
commit
f9111652ef
73 changed files with 36 additions and 37 deletions
25
llama_toolchain/common/deployment_types.py
Normal file
25
llama_toolchain/common/deployment_types.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
from enum import Enum
|
||||
from typing import Dict, Optional
|
||||
|
||||
from llama_models.llama3_1.api.datatypes import URL
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from strong_typing.schema import json_schema_type
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class RestAPIMethod(Enum):
|
||||
GET = "GET"
|
||||
POST = "POST"
|
||||
PUT = "PUT"
|
||||
DELETE = "DELETE"
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class RestAPIExecutionConfig(BaseModel):
|
||||
url: URL
|
||||
method: RestAPIMethod
|
||||
params: Optional[Dict[str, str]] = None
|
||||
headers: Optional[Dict[str, str]] = None
|
||||
body: Optional[Dict[str, str]] = None
|
7
llama_toolchain/common/training_types.py
Normal file
7
llama_toolchain/common/training_types.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from llama_models.llama3_1.api.datatypes import URL
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class Checkpoint(BaseModel):
|
||||
iters: int
|
||||
path: URL
|
Loading…
Add table
Add a link
Reference in a new issue