humanify icon indicating copy to clipboard operation
humanify copied to clipboard

Error : The context size (4096)is too small to fit the context shift size 4096

Open LiAyase opened this issue 1 year ago • 4 comments

I've encountered an issue while attempting to deobfuscate a JavaScript file that uses function name obfuscation and JSVMP reinforcement, utilizing a large model. My setup is a Windows 11 device with 64GB of RAM and an RTX 4000 ADA GPU with 12GB of VRAM. Could you advise me on how to proceed? Thank you very much!

1ee05b24947e038ca0ca60cd313c5ac

LiAyase avatar Nov 11 '24 08:11 LiAyase

I think this might be because of the recent default context size change at version 2.2.0.

As a workaround you could set the --contextSize argument to something less than 1000, like 750 and try again.

If you can provide an example file which results in this kind of error, it would be super good so I can fix the underlying issue

jehna avatar Nov 11 '24 09:11 jehna

@jehna Im having the same issue. How to set the --contextSize argument? Could you please provide an example. I tried this and it didn't work: humanify local --contextSize=750 file.js

ahmedalatawi avatar Nov 12 '24 15:11 ahmedalatawi

@jehna Thank you for your reply. Unfortunately, for some reason, I am unable to provide you with the JS file. humanify local --contextSize=750 file.js and humanify local --contextSize 750 file.js, I have tried this but it didn't work

LiAyase avatar Nov 13 '24 02:11 LiAyase

Can you try lower values too? The original was 200, at least that should work

jehna avatar Nov 13 '24 08:11 jehna