Skip to content

Allow overriding model download URL via LAMBEQ_MODELS_URL - #259

Open
iwang-1 wants to merge 1 commit into
Quantinuum:mainfrom
iwang-1:fix-models-url-override
Open

iwang-1 wants to merge 1 commit into
Quantinuum:mainfrom
iwang-1:fix-models-url-override

Conversation

@iwang-1

@iwang-1 iwang-1 commented Jul 10, 2026

Copy link
Copy Markdown

Fixes #253, #254, #257.

The model download host is hardcoded to qnlp.cambridgequantum.com, which is no longer reachable, so BobcatParser() / OncillaParser() fail on a fresh install.

This reads the base URL from a new LAMBEQ_MODELS_URL environment variable when set, defaulting to the existing value. Users can point at a mirror or the updated host without waiting for a release. get_url() reads the variable at call time; a trailing slash is handled. Adds two tests.

Happy to also update the default URL directly if a maintainer can share the current model-hosting location.

The hardcoded qnlp.cambridgequantum.com host is unreachable (issues Quantinuum#253,
Quantinuum#254, Quantinuum#257), so BobcatParser/OncillaParser fail on a fresh install. Read the
base URL from the LAMBEQ_MODELS_URL environment variable when set (defaulting
to the existing value), letting users point at a mirror or updated host
without waiting for a release.
@iwang-1 iwang-1 changed the title Allow overriding model download URL via LAMBEQ_MODELS_URL Allow overriding model download URL via LAMBEQ_MODELS_URL Jul 10, 2026

@pstaykov pstaykov left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iwang-1

iwang-1 commented Sep 24, 2026

Copy link
Copy Markdown
Author

Hey, just wanted to check in on this, happy to update the hardcoded URL directly instead if that's the preferred approach, just need to know where the models are currently hosted. Let me know what works best!

@pstaykov

Copy link
Copy Markdown

@iwang-1 in have no authority to merge anything. You’re going to have to reach out to someone else.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to reach URL https://qnlp.cambridgequantum.com/

2 participants