Skip to content

fix(taggers): use HTTPS URL for code composition model#302

Open
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/code-composition-model-url
Open

fix(taggers): use HTTPS URL for code composition model#302
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/code-composition-model-url

Conversation

@Chessing234

Copy link
Copy Markdown

Fixes #268

CodeProseCompositionClassifier.MODEL_PATH used an hf:// URI, but dolma downloads FastText models via smart_open, which only handles standard HTTP(S) URLs. Instantiating the tagger failed before any classification ran.

Use the same https://huggingface.co/.../resolve/main/... pattern as the other FastText taggers in this repo.

Made with Cursor

smart_open cannot fetch hf:// URIs, so CodeProseCompositionClassifier
failed to load its model at instantiation time.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Model path cannot be resolved

1 participant