You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to download AI modules after failed download #1012
I was unable to complete the download of the AI-modules during the first time. Now, whenever I try to download it again, after the download window appears (0%) I just get error messages:
File "qualcoder\ai_async_worker.py", line 108, in run
File "qualcoder\ai_vectorstore.py", line 233, in _download_embedding_model
File "requests\api.py", line 73, in get
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 688, in send
ConnectTimeout: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /intfloat/multilingual-e5-large/resolve/main/pytorch_model.bin (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001ACFE86F1A0>, 'Connection to huggingface.co timed out. (connect timeout=20)'))
Please also take a look at the screenshot.
Any ideas what I could try? Deleting the .qualcoder folder as suggested to someone else in another context did not solve the issue.
I've checked huggingface.co, where the files are hosted. But the download works fine for me.
So, the most likely cause for this issue that the internet access of QualCoder is blocked somehow, either by Microsoft Defender or another firewall or antivirus software on your machine.
Thank you for your swift reply! I can confirm that I am unable to open the huggingface.co website, even with vpn, strangely. It works from my phone, albeit only with vpn as well. I have no idea why it wouldn't load on my desktop. Is there any workaround for this? Can I integrate the model manually somehow, if I manage to download it? (Are there any mirrors?)
Are you behind the "great firewall"? If so, you might indeed have problems accessing huggingface.co and also openai's servers.
Anyhow, if you want to download the files manually, you can do so as well:
The local AI model is stored (on Windows) in C:\Users\USERNAME\.cache\torch\sentence_transformers\intfloat_multilingual-e5-large. Create this path if it necessary.
Make sure to download the following files:
'.gitattributes',
'config.json',
'modules.json',
'pytorch_model.bin',
'README.md',
'sentence_bert_config.json',
'sentencepiece.bpe.model',
'special_tokens_map.json',
'tokenizer.json',
'tokenizer_config.json'
Also, create a subfolder "1_Pooling" and download the file '1_Pooling/config.json' from huggingface.
Now, if you restart QualCoder, everything should be there.
Your solution worked like a charm! Thank you very much for your help! Living behind the great firewall can indeed be tricky sometimes. Hope I didn't cause too much trouble with this.
Hi Kai! I am using Blablador, which works smoothly. I also tried using offline models through GPT4All which did not work, because apparently GPT4All's API server doesn't support streaming. It connects just fine, but as soon as I try to use the AI (i.e. start a chat or coding with it) it returns errors:
2025/02/21 14:57:57 ERROR qualcoder.ai_chat.ai_error_callback Unbehandelter Fehler: Error communicating with GPT4ALL
BadRequestError: Error code: 400 - {'error': {'code': None, 'message': "'stream' is not supported", 'param': None, 'type': 'invalid_request_error'}}
File "qualcoder\ai_async_worker.py", line 108, in run
File "qualcoder\ai_llm.py", line 355, in _ai_async_stream
File "langchain_core\language_models\chat_models.py", line 415, in stream
File "langchain_openai\chat_models\base.py", line 722, in _stream
File "openai_utils_utils.py", line 279, in wrapper
File "openai\resources\chat\completions.py", line 863, in create
File "openai_base_client.py", line 1283, in post
File "openai_base_client.py", line 960, in request
File "openai_base_client.py", line 1064, in _request
{'code': None, 'message': "'stream' is not supported", 'param': None, 'type': 'invalid_request_error'}
Here is the corresponding part in my config.ini. Should be fine, I think? (Note, though, that entering None (without "") produced another error. Entering anything else seems to work, since G4A seems to ignore it.):
Using localized models would be really neat, but for now I'm quite happy with Blablador and have to stop experimenting with this when I should be writing. Thank you again!
Ollama works with QualCoder, by the way, thanks for the pointer! I can now use QualCoder with local AI (yay!)! But I have to say it is rather slow on a regular 16GB Ram PC with no graphics processor. The resulting AI-assisted content analysis, for instance, can't compete with Blablador's (Thanks for the huge model link, too, btw!) API. I've thought about trying Deepseek's API, too, but one criterium is conformity to European privacy regulations (it's just one of those additional factors I don't want to hassle with).
Activity
[-]Unable to download AI modules after butched download[/-][+]Unable to download AI modules after failed download[/+]kaixxx commentedon Feb 20, 2025
I've checked huggingface.co, where the files are hosted. But the download works fine for me.
So, the most likely cause for this issue that the internet access of QualCoder is blocked somehow, either by Microsoft Defender or another firewall or antivirus software on your machine.
anouarg88 commentedon Feb 20, 2025
Thank you for your swift reply! I can confirm that I am unable to open the huggingface.co website, even with vpn, strangely. It works from my phone, albeit only with vpn as well. I have no idea why it wouldn't load on my desktop. Is there any workaround for this? Can I integrate the model manually somehow, if I manage to download it? (Are there any mirrors?)
kaixxx commentedon Feb 20, 2025
Are you behind the "great firewall"? If so, you might indeed have problems accessing huggingface.co and also openai's servers.
Anyhow, if you want to download the files manually, you can do so as well:
C:\Users\USERNAME\.cache\torch\sentence_transformers\intfloat_multilingual-e5-large. Create this path if it necessary.'.gitattributes',
'config.json',
'modules.json',
'pytorch_model.bin',
'README.md',
'sentence_bert_config.json',
'sentencepiece.bpe.model',
'special_tokens_map.json',
'tokenizer.json',
'tokenizer_config.json'
anouarg88 commentedon Feb 20, 2025
Dear Kai,
Your solution worked like a charm! Thank you very much for your help! Living behind the great firewall can indeed be tricky sometimes. Hope I didn't cause too much trouble with this.
Best wishes
Anouâr
kaixxx commentedon Feb 20, 2025
Perfect. Can you access GPT4 from QualCoder? Or are you using another model?
anouarg88 commentedon Feb 21, 2025
Hi Kai! I am using Blablador, which works smoothly. I also tried using offline models through GPT4All which did not work, because apparently GPT4All's API server doesn't support streaming. It connects just fine, but as soon as I try to use the AI (i.e. start a chat or coding with it) it returns errors:
2025/02/21 14:57:57 ERROR qualcoder.ai_chat.ai_error_callback Unbehandelter Fehler: Error communicating with GPT4ALL
BadRequestError: Error code: 400 - {'error': {'code': None, 'message': "'stream' is not supported", 'param': None, 'type': 'invalid_request_error'}}
File "qualcoder\ai_async_worker.py", line 108, in run
File "qualcoder\ai_llm.py", line 355, in _ai_async_stream
File "langchain_core\language_models\chat_models.py", line 415, in stream
File "langchain_openai\chat_models\base.py", line 722, in _stream
File "openai_utils_utils.py", line 279, in wrapper
File "openai\resources\chat\completions.py", line 863, in create
File "openai_base_client.py", line 1283, in post
File "openai_base_client.py", line 960, in request
File "openai_base_client.py", line 1064, in _request
{'code': None, 'message': "'stream' is not supported", 'param': None, 'type': 'invalid_request_error'}
Here is the corresponding part in my config.ini. Should be fine, I think? (Note, though, that entering None (without "") produced another error. Entering anything else seems to work, since G4A seems to ignore it.):
[ai_model_GPT4ALL]
desc = Local implementation of various LLM through Nomic GPT4ALL
access_info_url = https://gpt4all.io
large_model = deepseek-ai.DeepSeek-R1-Distill-Qwen-7B.Q4_K_M.gguf
large_model_context_window = 128000
fast_model = deepseek-ai.DeepSeek-R1-Distill-Qwen-7B.Q2_K.gguf
fast_model_context_window = 128000
api_base = http://localhost:4891/v1
api_key = Completely-Made-Up-API-key
Using localized models would be really neat, but for now I'm quite happy with Blablador and have to stop experimenting with this when I should be writing. Thank you again!
kaixxx commentedon Feb 21, 2025
Note that Blablador also runs the large 405b Llama 3 model. Just put in "alias-llama3-huge" as the model name in your config.
If you want to run local models, Ollama might be an option: https://ollama.com/blog/openai-compatibility I have not tested it, however. Strange that GPT4All doesn't support streaming.
Finally, Deepseek API access should also work (again, untested): https://api-docs.deepseek.com/
kaixxx commentedon Feb 21, 2025
Finally, since it seems that you speak German - here is a Webinar (yet unpublished), showing the AI features in more detail: https://youtu.be/JF64vbngedA
anouarg88 commentedon Feb 22, 2025
Oh, wow! Ganz herzlichen Dank!
anouarg88 commentedon Feb 22, 2025
Ollama works with QualCoder, by the way, thanks for the pointer! I can now use QualCoder with local AI (yay!)! But I have to say it is rather slow on a regular 16GB Ram PC with no graphics processor. The resulting AI-assisted content analysis, for instance, can't compete with Blablador's (Thanks for the huge model link, too, btw!) API. I've thought about trying Deepseek's API, too, but one criterium is conformity to European privacy regulations (it's just one of those additional factors I don't want to hassle with).