workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG: ✘ [ERROR] 🚨 Couldn't upload file: ReferenceError: Blob is not defined, quiting...

Open PKD667 opened this issue 1 year ago • 1 comments

Which Cloudflare product(s) does this pertain to?

Wrangler

What version(s) of the tool(s) are you using?

Wrangler 3.72.2

What version of Node are you using?

16.15.1

What operating system and version are you using?

Arch Linux

Describe the Bug

Observed behavior

When trying to create a lora finetune ising wrangler, it crashes when uploading the files with this error message :

✘ [ERROR] 🚨 Couldn't upload file: ReferenceError: Blob is not defined, quiting...

Expected behavior

It should upload the files without crashing ?

Steps to reproduce

npx wrangler ai finetune create @cf/mistral/mistral-7b-instruct-v0.2-lora <ft-name> <ft-folder>

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

--- 2024-08-23T17:19:18.686Z debug
No experimental flag store instantiated
---

--- 2024-08-23T17:19:18.686Z debug
Attempted to use flag "JSON_CONFIG_FILE" which has not been instantiated
---

--- 2024-08-23T17:19:18.692Z debug
Retrieving cached values for account from node_modules/.cache/wrangler
---

--- 2024-08-23T17:19:18.692Z debug
Saving to cache: {"account":{"id":"488e48b3049291035be72720f831d9f7","name":""}}
---

--- 2024-08-23T17:19:18.693Z log
🌀 Creating new finetune "merged-orpo-r8" for model "@cf/mistral/mistral-7b-instruct-v0.2-lora"...
---

--- 2024-08-23T17:19:18.694Z debug
-- START CF API REQUEST: POST https://api.cloudflare.com/client/v4/accounts/488e48b3049291035be72720f831d9f7/ai/finetunes
---

--- 2024-08-23T17:19:18.694Z debug
HEADERS: omitted; set WRANGLER_LOG_SANITIZE=false to include sanitized data
---

--- 2024-08-23T17:19:18.694Z debug
INIT: omitted; set WRANGLER_LOG_SANITIZE=false to include sanitized data
---

--- 2024-08-23T17:19:18.694Z debug
-- END CF API REQUEST
---

--- 2024-08-23T17:19:19.950Z debug
-- START CF API RESPONSE: OK 200
---

--- 2024-08-23T17:19:19.950Z debug
HEADERS: omitted; set WRANGLER_LOG_SANITIZE=false to include sanitized data
---

--- 2024-08-23T17:19:19.950Z debug
RESPONSE: omitted; set WRANGLER_LOG_SANITIZE=false to include sanitized data
---

--- 2024-08-23T17:19:19.950Z debug
-- END CF API RESPONSE
---

--- 2024-08-23T17:19:19.950Z log
🌀 Uploading file "Mistral-7B-Instruct-v0.2-mergedORPO-r8/adapter_config.json" to "merged-orpo-r8"...
---

--- 2024-08-23T17:19:19.991Z error
✘ [ERROR] 🚨 Couldn't upload file: ReferenceError: Blob is not defined, quiting...


---

PKD667 avatar Aug 23 '24 17:08 PKD667

Link to a repro?

irvinebroque avatar Aug 23 '24 17:08 irvinebroque

hi @PKD667 :) we haven't heard from you in a while so we’re going to close this issue for now. if this is still a problem, please feel free to open a new issue referencing this one and please be sure to include an updated summary and repro and we will revisit and investigate further. thanks!

lrapoport-cf avatar Sep 23 '24 13:09 lrapoport-cf