@aiuby-ia/cli 0.5.1 → 0.5.2
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/dist/aiuby.mjs
CHANGED
|
@@ -20637,7 +20637,7 @@ async function appsStatus(io, args) {
|
|
|
20637
20637
|
});
|
|
20638
20638
|
}
|
|
20639
20639
|
var brl = (microBrl) => (microBrl / 1e6).toLocaleString("pt-BR", { style: "currency", currency: "BRL" });
|
|
20640
|
-
var paidLine = (paid) => `Tamanho ${paid.sizeName}${paid.priceMicroBrlPerHour !== null ? `: ${brl(paid.priceMicroBrlPerHour)} por hora em uso` : ""}.`;
|
|
20640
|
+
var paidLine = (paid) => `Tamanho ${paid.sizeName}${paid.priceMicroBrlPerHour !== null ? `: ${brl(paid.priceMicroBrlPerHour)} ${paid.unit === "hour_started" ? "por hora iniciada de inst\xE2ncia ligada" : "por hora em uso"}` : ""}.`;
|
|
20641
20641
|
var fetchDeployment = (io, stored, slug) => apiGet(stored, `/api/platform/compute/apps/${encodeURIComponent(slug)}/deployments`, io.fetcher);
|
|
20642
20642
|
var when = (iso) => new Date(iso).toLocaleString("pt-BR", { dateStyle: "short", timeStyle: "short" });
|
|
20643
20643
|
function printDeployment(io, d) {
|
|
@@ -20707,7 +20707,7 @@ async function billing(io) {
|
|
|
20707
20707
|
io.out(`Compute no m\xEAs: ${brl(data.monthSpendMicroBrl)}`);
|
|
20708
20708
|
io.out(`Teto do workspace: ${data.budgetMicroBrl === null ? "n\xE3o definido (dono ou admin define na tela do Compute)" : brl(data.budgetMicroBrl)}`);
|
|
20709
20709
|
io.out("");
|
|
20710
|
-
table(io, ["TAMANHO", "VCPU", "MEM\xD3RIA", "PRE\xC7O
|
|
20710
|
+
table(io, ["TAMANHO", "VCPU", "MEM\xD3RIA", "REGI\xC3O", "PRE\xC7O"], data.sizes.map((s) => [s.name, String(s.cpu), `${s.memoryMb} MB`, s.region ?? "S\xE3o Paulo", s.priceMicroBrlPerHour === null ? "-" : `${brl(s.priceMicroBrlPerHour)} ${s.unit === "hour_started" ? "por hora iniciada" : "por hora em uso"}`]));
|
|
20711
20711
|
});
|
|
20712
20712
|
}
|
|
20713
20713
|
async function usage(io, args) {
|
|
@@ -20841,7 +20841,7 @@ var notYet = (command) => async () => {
|
|
|
20841
20841
|
};
|
|
20842
20842
|
|
|
20843
20843
|
// src/main.ts
|
|
20844
|
-
var VERSION = "0.5.
|
|
20844
|
+
var VERSION = "0.5.2";
|
|
20845
20845
|
var HELP = `aiuby ${VERSION} \u2014 linha de comando do AIUBY Compute
|
|
20846
20846
|
|
|
20847
20847
|
Uso: aiuby <comando> [op\xE7\xF5es]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Geração de imagem com um modelo de difusão do Hugging Face. O modelo é baixado na primeira
|
|
2
2
|
# subida: escolha um cuja licença permita o seu uso e que caiba na memória da GPU pedida.
|
|
3
|
-
FROM pytorch/pytorch:2.
|
|
3
|
+
FROM pytorch/pytorch:2.7.1-cuda12.6-cudnn9-runtime
|
|
4
4
|
WORKDIR /app
|
|
5
5
|
COPY requirements.txt .
|
|
6
6
|
RUN pip install --no-cache-dir -r requirements.txt
|