n/open-sourceu/fat3264 · 6 mesi fa
Registrati Accedi
n/open-source · 6 mesi fa · Modificato · 2,8K visualizzazioni
u/fat3264Membro onorarioDiamante

Nvidia 自动开机参考资料

前提条件:通过 https://dsx-air.nvidia.com/ 注册并成功申请到试用资格,且创建好simulations

先打开 https://dsx-air.nvidia.com/simulations 找到自己的simulationsID
例如:nodeloce-7dec-11d0-a765-00a0cnodeloc

然后在登录状态下,打开F12,直接在Console里粘贴如下代码(自行修改sid和URL前缀)
另外可能脚本中dsx-air前缀不一定是最新的,如有新的则替换成新的(比如air-ngc)

[upvote]

if (window._sMonitor?.isActive) {
  window._sMonitor.destroy();
}

class SMonitor {
  #sid = "nodeloce-7dec-11d0-a765-00a0cnodeloc"; //自己的simulationsID
  #intervalMs = 3000; //任务间隔 毫秒数
  #abortController = null;
  #timerId = null;

  constructor() {
    this.isActive = true;
    this.#initLoop();
  }

  get #requestConfig() {
    return {
      method: "PATCH",
      mode: "cors",
      credentials: "include",
      referrer: `https://dsx-air.nvidia.com/simulations/${this.#sid}`,
      headers: {
        "accept": "application/json, text/plain, */*",
        "cache-control": "no-cache",
        "pragma": "no-cache"
      }
    };
  }

  async #pingState() {
    const timestamp = () => `[${new Date().toLocaleTimeString()}]`;
    const url = `https://api.dsx-air.nvidia.com/api/v3/simulations/${this.#sid}/start/`;

    try {
      const response = await fetch(url, {
        ...this.#requestConfig,
        signal: this.#abortController?.signal
      });

      const rawText = await response.text();
      let parsedData;
      
      try {
        parsedData = JSON.parse(rawText);
      } catch {
        parsedData = rawText;
      }

      if (parsedData && typeof parsedData === 'object' && 'state' in parsedData) {
        console.log(`${timestamp()} State:`, parsedData.state);
      } else {
        console.log(`${timestamp()} Raw Response:`, parsedData);
      }

      if (!response.ok) {
        console.log(`${timestamp()} HTTP Error:`, response.status);
      }

    } catch (err) {
        console.log(`${timestamp()} Network/Request Failed:`, err);
    }
  }

  #initLoop() {
    this.#abortController = new AbortController();
    
    const tick = async () => {
      if (!this.isActive) return;
      await this.#pingState();
      if (this.isActive) {
        this.#timerId = setTimeout(tick, this.#intervalMs);
      }
    };

    tick();
  }

  destroy() {
    this.isActive = false;
    if (this.#timerId) clearTimeout(this.#timerId);
    if (this.#abortController) this.#abortController.abort();
    console.log("stopped and cleaned up.");
  }
}

window._sMonitor = new SMonitor();

[/upvote]

只要代码开始运行了就不要再操作这个网站了以防止自动退出登录,再之后出现任何错误都不用理会。
只要返回如下类似内容,就表示代码正常运行了。

HTTP Error: 400
HTTP Error: 403
State: REQUESTING

PS:如果申请试用资格失败的话,貌似换个IP再刷新页面有机率申请成功!

Good luck to all

34
165
Accedi per partecipare alla discussione.
海外原生IP VPS,稳定访问全球网络

还在为IP不纯、平台风控、频繁验证而烦恼? 丽萨主机海外原生IP VPS,双ISP住宅IP,覆盖美国、香港、日本、新加坡、台湾、德国、越南、英国等热门地区,适合跨境电商、社媒运营、AI工具、流媒体及海外业务使用。

lisahost.com Scopri di più

165 risposte

Ordinamento
  1. GeorgeXie 💬 Maestro Sempre insieme, qualunque cosa accada 6 mesi fa

    厉害了大佬

    3
  2. BearPaw Maestro 6 mesi fa

    我还要等吗???:xhj19:

    3
  3. wboo Argento 6 mesi fa

    支持一个,还没有开出来

    2
  4. liuhaha Oro 2 ANNI 6 mesi fa

    学习一下

    2
  5. BearPaw Maestro 6 mesi fa

    看看,感谢大佬

    2
  6. eooce Membro onorario Diamante 大神 6 mesi fa

    顶配就位

    2
  7. James 💯 Leggenda MANAGER 6 mesi fa

    怎么还能DD win,太牛逼了

    0
  8. supers Impareggiabile Membro Maestro 6 mesi fa

    早玩过了,哈哈。

    0
  9. zhoujia 富可敌国 Diamante Ricco sfondato 6 mesi fa

    试试

    1
  10. AlteremLiu 💭 Diamante 6 mesi fa

    期待我的好消息

    1
  11. zhoujia 富可敌国 Diamante Ricco sfondato 6 mesi fa

    小鸡其实已经更新好了,但没法开机 :xhj001:

    1
  12. hakd Maestro 2 ANNI 6 mesi fa

    反正我是开不出机器来。
    只能看看了。

    1
  13. zhizhang31415926-ops Argento 6 mesi fa

    试一下能不能开,手动开不了

    1
  14. zhongting Oro 6 mesi fa

    看看

    1
  15. jhon_xin Oro 6 mesi fa

    感谢大佬

    1
  16. hankswang01 Oro Non abbandonare mai, non arrendersi mai 6 mesi fa

    谢谢大佬

    1
  17. biubiuball Oro 6 mesi fa

    不错的内容,Mark

    1
  18. zbigbird Argento 6 mesi fa

    学习一下

    1
  19. linxone2895 Oro 6 mesi fa

    支持一个!

    1
  20. Pua Argento 3 YEARS 6 mesi fa

    来晚了啊,没有资格了

    0
  21. acwea904 Oro 3 YEARS 6 mesi fa

    支持一个

    0
  22. sdcfre Diamante 3 ANNI 6 mesi fa

    看看

    0
  23. eryingzhang Oro 6 mesi fa

    正需要 看看

    0
  24. reidentify Argento 6 mesi fa

    支持一下。感谢分享

    0
  25. AlteremLiu 💭 Diamante 6 mesi fa

    我看看

    0
  26. eryingzhang Oro 6 mesi fa

    simulationsID 在哪个位置,大佬帮忙截个图 谢谢

    0
  27. AlteremLiu 💭 Diamante 6 mesi fa
    1
  28. Jessadmin Argento 3 ANNI 6 mesi fa

    学习学习

    0
  29. techthink Argento 6 mesi fa

    感谢大佬,膜拜

    0
  30. Lazy Argento 3 ANNI 6 mesi fa

    厉害了

    0
  31. lo_Yuki Argento 6 mesi fa

    看看怎么样

    0
  32. mansel Argento 6 mesi fa

    看一看

    0
  33. yellowbins Oro 3 ANNI 6 mesi fa

    支持一个

    0