Skip to content

Checks for HF model <-> language compatibility for translation #1207

@HareeshBahuleyan

Description

@HareeshBahuleyan

Regarding the language compatibility one way we can achieve this is by calling the hf_api to get the model tags
https://huggingface.co/docs/huggingface_hub/en/package_reference/hf_api#huggingface_hub.HfApi.get_model_tags

And validate if the language is present in the list (not sure if it is a fool-proof way to check for all models, since it depends on the contributors adding those tags):
image

We could build a functionality for this, at the moment I think words from unsupported languages may be treated as unknown tokens.

Originally posted by @HareeshBahuleyan in #1178 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions