OGAM icon indicating copy to clipboard operation
OGAM copied to clipboard

[Bug] Can not download models

Open dotancohen opened this issue 8 months ago • 16 comments

Description

After upgrading from 0.45 to 0.67, I can not download models. When I click a model (e.g. one of the Qwens) I see in the upper left "Download Failed", in the upper right "Done" and below them "undefined is not a function".

Steps to Reproduce

  1. Click Models
  2. Click the Download icon (e.g. for Qwen3-8B-Q5_0)
  3. There is no step 3

Expected Behavior

Begin downloading the model

Actual Behavior

Error message: undefined is not a function

Environment

  • Platform: Android
  • OS Version: 16
  • Device: Samsung S24 Ultra
  • App Version: 0.67
  • Model in use: none

dotancohen avatar Mar 07 '26 00:03 dotancohen

Does the same when I import a model

Patriot2407 avatar Mar 07 '26 01:03 Patriot2407

0.67 has a known issue. please use 0.66 for now

alichherawalla avatar Mar 07 '26 05:03 alichherawalla

working on the fix for it

alichherawalla avatar Mar 07 '26 05:03 alichherawalla

this is fixed in 0.0.70. Published to the play store, and waiting on the app store

alichherawalla avatar Mar 08 '26 06:03 alichherawalla

I have 0.0.70 and it still won't download anything

LancerCZ avatar Mar 11 '26 18:03 LancerCZ

I have tried the last version 0.0.81; the git version, the PlayStore version and the 0.0.66 version but neither of them can download any model. It just keep waiting at 0% and after a while it gives me back the error "download failed"

illigian avatar Apr 07 '26 05:04 illigian

the latest 0.83 should solve for it! Give it a go. https://github.com/alichherawalla/off-grid-mobile-ai/releases/tag/v0.0.83

alichherawalla avatar Apr 07 '26 05:04 alichherawalla

I installed it immediately after your comment, put a model in download and it is simply stuck there at 0% for the last 20 min. No error this time but no progression. Could be a workaround to give the direct link for the models and direct download? Se we can use a browser to download them externally from the app and then import them?

Image Image

illigian avatar Apr 07 '26 05:04 illigian

Hi. @illigian ,I want to resolve this issue. are you on slack want to talk and gain some more insights so can fix this for once

dishit-wednesday avatar Apr 07 '26 07:04 dishit-wednesday

I have exactly the same problem

LancerCZ avatar Apr 10 '26 20:04 LancerCZ

hey @LancerCZ, this turned out to be a pretty nasty bug. it looks like the native http client used by some download managers, especially on samsung or redmagic devices, was cutting off or blocking huggingface’s long signed urls.

we’ve worked around this with @illigian’s help and have a fix ready. just doing some final polishing and testing before the next release, should be out sometime next week.

if you’re up for it, i can share an apk with the fix on slack. it would really help us confirm it’s fully resolved on your device.

dishit-wednesday avatar Apr 11 '26 15:04 dishit-wednesday

I have the same problem on my redmagic device and could test the fix

Temder avatar Apr 13 '26 09:04 Temder

hey @Temder can you try out the latest release v0.0.89 and let me know if it works for you as well ,has been fixed for some folks

dishit-wednesday avatar Apr 20 '26 05:04 dishit-wednesday

In the latest version the downloading problem is fixed for me.

Temder avatar Apr 20 '26 05:04 Temder

Hey @Temder, glad to hear it's working for you! Really appreciate you taking the time to test it out 🙌

dishit-wednesday avatar Apr 20 '26 06:04 dishit-wednesday

Hey @dotancohen @LancerCZ , ! This has been confirmed fixed for both @illigian and @Temder.

We tracked down the root cause - it turned out to be a native http client issue on certain Android devices that was truncating or blocking HuggingFace's long signed URLs. We did a complete overhaul of the download handling to work around this.

Apologies for asking you to test earlier builds that didn't pan out. Could you give the latest release v0.0.89 a try and let us know if it's working on your end?

dishit-wednesday avatar Apr 20 '26 06:04 dishit-wednesday