List weights and LoRA adapters imported from the workspace's own S3 or GCS buckets
GET
/
api
/
v1
/
model-imports
List weights and LoRA adapters imported from the workspace's own S3 or GCS buckets
curl --request GET \
--url http://127.0.0.1:18000/api/v1/model-imports \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:18000/api/v1/model-imports"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:18000/api/v1/model-imports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:18000/api/v1/model-imports"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"checks": {
"failed": [
"<string>"
],
"total_bytes": 1,
"unknown": [
"<string>"
],
"verified": [
"<string>"
],
"adapter_base_model": "<string>",
"adapter_rank": 123,
"architecture": "<string>",
"config_digest": "<string>",
"model_type": "<string>",
"tokenizer_files": [
"<string>"
]
},
"created_at": "2023-11-07T05:31:56Z",
"files": [
{
"path": "<string>",
"sha256": "<string>",
"size": 1
}
],
"id": "<string>",
"kind": "weights",
"manifest_digest": "<string>",
"source": "s3",
"uri": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"category": "<string>",
"remediation": "<string>",
"request_id": "<string>",
"retryable": true
}
}⌘I
List weights and LoRA adapters imported from the workspace's own S3 or GCS buckets
curl --request GET \
--url http://127.0.0.1:18000/api/v1/model-imports \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:18000/api/v1/model-imports"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:18000/api/v1/model-imports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:18000/api/v1/model-imports"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"checks": {
"failed": [
"<string>"
],
"total_bytes": 1,
"unknown": [
"<string>"
],
"verified": [
"<string>"
],
"adapter_base_model": "<string>",
"adapter_rank": 123,
"architecture": "<string>",
"config_digest": "<string>",
"model_type": "<string>",
"tokenizer_files": [
"<string>"
]
},
"created_at": "2023-11-07T05:31:56Z",
"files": [
{
"path": "<string>",
"sha256": "<string>",
"size": 1
}
],
"id": "<string>",
"kind": "weights",
"manifest_digest": "<string>",
"source": "s3",
"uri": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"category": "<string>",
"remediation": "<string>",
"request_id": "<string>",
"retryable": true
}
}