@gpuai/sdk 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/esm/models/CreateInstanceRequest.d.ts +1 -1
- package/dist/esm/models/Problem.d.ts +1 -0
- package/dist/esm/models/Problem.js +1 -0
- package/dist/models/CreateInstanceRequest.d.ts +1 -1
- package/dist/models/Problem.d.ts +1 -0
- package/dist/models/Problem.js +1 -0
- package/package.json +1 -1
- package/src/models/CreateInstanceRequest.ts +1 -1
- package/src/models/Problem.ts +1 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @gpuai/sdk@0.3.
|
|
1
|
+
# @gpuai/sdk@0.3.3
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the api.gpu.ai API.
|
|
4
4
|
|
|
@@ -196,7 +196,7 @@ and is automatically generated by the
|
|
|
196
196
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
197
197
|
|
|
198
198
|
- API version: `1.0.0`
|
|
199
|
-
- Package version: `0.3.
|
|
199
|
+
- Package version: `0.3.3`
|
|
200
200
|
- Generator version: `7.24.0`
|
|
201
201
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
202
202
|
|
|
@@ -64,7 +64,7 @@ export interface CreateInstanceRequest {
|
|
|
64
64
|
*/
|
|
65
65
|
viewedPricePerHour?: number;
|
|
66
66
|
/**
|
|
67
|
-
* Deploy a curated application template (e.g. comfyui, vllm). When set, gpu_type may be omitted — the cheapest eligible GPU is auto-selected. For templates serving a Hugging Face model via env.MODEL (vllm, sglang), the model's published weights size is checked against the GPU's VRAM at submit time: an oversized model on an explicit gpu_type returns 422 `model_too_large` (auto-select instead raises its VRAM floor to the estimate, and 422s only when no available GPU fits). Gated/private/unknown repos are never blocked — the deploy proceeds and the 202 carries a `warnings` entry.
|
|
67
|
+
* Deploy a curated application template (e.g. comfyui, vllm). When set, gpu_type may be omitted — the cheapest eligible GPU is auto-selected. For templates serving a Hugging Face model via env.MODEL (vllm, sglang), the model's published weights size is checked against the GPU's VRAM at submit time: an oversized model on an explicit gpu_type returns 422 `model_too_large` (auto-select instead raises its VRAM floor to the estimate, and 422s only when no available GPU fits). Gated/private/unknown repos are never blocked — the deploy proceeds and the 202 carries a `warnings` entry. Separately, an explicit gpu_type whose VRAM is below the template's own `min_vram_gb` returns 422 `gpu_vram_too_small`, naming the floor, the type's VRAM and the compatible GPU types. Auto-select is unaffected — it already filters by the floor.
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof CreateInstanceRequest
|
|
70
70
|
*/
|
|
@@ -67,6 +67,7 @@ export declare const ProblemCodeEnum: {
|
|
|
67
67
|
readonly DiskUnavailable: "disk_unavailable";
|
|
68
68
|
readonly DiskExceedsOffering: "disk_exceeds_offering";
|
|
69
69
|
readonly ModelTooLarge: "model_too_large";
|
|
70
|
+
readonly GpuVramTooSmall: "gpu_vram_too_small";
|
|
70
71
|
readonly PriceChanged: "price_changed";
|
|
71
72
|
readonly InsufficientBalance: "insufficient_balance";
|
|
72
73
|
readonly QuotaExceeded: "quota_exceeded";
|
|
@@ -26,6 +26,7 @@ export const ProblemCodeEnum = {
|
|
|
26
26
|
DiskUnavailable: 'disk_unavailable',
|
|
27
27
|
DiskExceedsOffering: 'disk_exceeds_offering',
|
|
28
28
|
ModelTooLarge: 'model_too_large',
|
|
29
|
+
GpuVramTooSmall: 'gpu_vram_too_small',
|
|
29
30
|
PriceChanged: 'price_changed',
|
|
30
31
|
InsufficientBalance: 'insufficient_balance',
|
|
31
32
|
QuotaExceeded: 'quota_exceeded',
|
|
@@ -64,7 +64,7 @@ export interface CreateInstanceRequest {
|
|
|
64
64
|
*/
|
|
65
65
|
viewedPricePerHour?: number;
|
|
66
66
|
/**
|
|
67
|
-
* Deploy a curated application template (e.g. comfyui, vllm). When set, gpu_type may be omitted — the cheapest eligible GPU is auto-selected. For templates serving a Hugging Face model via env.MODEL (vllm, sglang), the model's published weights size is checked against the GPU's VRAM at submit time: an oversized model on an explicit gpu_type returns 422 `model_too_large` (auto-select instead raises its VRAM floor to the estimate, and 422s only when no available GPU fits). Gated/private/unknown repos are never blocked — the deploy proceeds and the 202 carries a `warnings` entry.
|
|
67
|
+
* Deploy a curated application template (e.g. comfyui, vllm). When set, gpu_type may be omitted — the cheapest eligible GPU is auto-selected. For templates serving a Hugging Face model via env.MODEL (vllm, sglang), the model's published weights size is checked against the GPU's VRAM at submit time: an oversized model on an explicit gpu_type returns 422 `model_too_large` (auto-select instead raises its VRAM floor to the estimate, and 422s only when no available GPU fits). Gated/private/unknown repos are never blocked — the deploy proceeds and the 202 carries a `warnings` entry. Separately, an explicit gpu_type whose VRAM is below the template's own `min_vram_gb` returns 422 `gpu_vram_too_small`, naming the floor, the type's VRAM and the compatible GPU types. Auto-select is unaffected — it already filters by the floor.
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof CreateInstanceRequest
|
|
70
70
|
*/
|
package/dist/models/Problem.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export declare const ProblemCodeEnum: {
|
|
|
67
67
|
readonly DiskUnavailable: "disk_unavailable";
|
|
68
68
|
readonly DiskExceedsOffering: "disk_exceeds_offering";
|
|
69
69
|
readonly ModelTooLarge: "model_too_large";
|
|
70
|
+
readonly GpuVramTooSmall: "gpu_vram_too_small";
|
|
70
71
|
readonly PriceChanged: "price_changed";
|
|
71
72
|
readonly InsufficientBalance: "insufficient_balance";
|
|
72
73
|
readonly QuotaExceeded: "quota_exceeded";
|
package/dist/models/Problem.js
CHANGED
|
@@ -34,6 +34,7 @@ exports.ProblemCodeEnum = {
|
|
|
34
34
|
DiskUnavailable: 'disk_unavailable',
|
|
35
35
|
DiskExceedsOffering: 'disk_exceeds_offering',
|
|
36
36
|
ModelTooLarge: 'model_too_large',
|
|
37
|
+
GpuVramTooSmall: 'gpu_vram_too_small',
|
|
37
38
|
PriceChanged: 'price_changed',
|
|
38
39
|
InsufficientBalance: 'insufficient_balance',
|
|
39
40
|
QuotaExceeded: 'quota_exceeded',
|
package/package.json
CHANGED
|
@@ -68,7 +68,7 @@ export interface CreateInstanceRequest {
|
|
|
68
68
|
*/
|
|
69
69
|
viewedPricePerHour?: number;
|
|
70
70
|
/**
|
|
71
|
-
* Deploy a curated application template (e.g. comfyui, vllm). When set, gpu_type may be omitted — the cheapest eligible GPU is auto-selected. For templates serving a Hugging Face model via env.MODEL (vllm, sglang), the model's published weights size is checked against the GPU's VRAM at submit time: an oversized model on an explicit gpu_type returns 422 `model_too_large` (auto-select instead raises its VRAM floor to the estimate, and 422s only when no available GPU fits). Gated/private/unknown repos are never blocked — the deploy proceeds and the 202 carries a `warnings` entry.
|
|
71
|
+
* Deploy a curated application template (e.g. comfyui, vllm). When set, gpu_type may be omitted — the cheapest eligible GPU is auto-selected. For templates serving a Hugging Face model via env.MODEL (vllm, sglang), the model's published weights size is checked against the GPU's VRAM at submit time: an oversized model on an explicit gpu_type returns 422 `model_too_large` (auto-select instead raises its VRAM floor to the estimate, and 422s only when no available GPU fits). Gated/private/unknown repos are never blocked — the deploy proceeds and the 202 carries a `warnings` entry. Separately, an explicit gpu_type whose VRAM is below the template's own `min_vram_gb` returns 422 `gpu_vram_too_small`, naming the floor, the type's VRAM and the compatible GPU types. Auto-select is unaffected — it already filters by the floor.
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof CreateInstanceRequest
|
|
74
74
|
*/
|
package/src/models/Problem.ts
CHANGED
|
@@ -73,6 +73,7 @@ export const ProblemCodeEnum = {
|
|
|
73
73
|
DiskUnavailable: 'disk_unavailable',
|
|
74
74
|
DiskExceedsOffering: 'disk_exceeds_offering',
|
|
75
75
|
ModelTooLarge: 'model_too_large',
|
|
76
|
+
GpuVramTooSmall: 'gpu_vram_too_small',
|
|
76
77
|
PriceChanged: 'price_changed',
|
|
77
78
|
InsufficientBalance: 'insufficient_balance',
|
|
78
79
|
QuotaExceeded: 'quota_exceeded',
|