question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discussion: download and upload models have a somewhat inconsistent API

See original GitHub issue

Hi all. Just a small-ish thing to discuss.

Methods that get information about/from repos take the full model id (e.g. hf_api.model_info("osanseviero/my-model") or snapshot_download("osanseviero/my-model)).

On the other hand, create_repo takes as two separate arguments the model name and the organization (if any). I wonder if this could lead to confusions in the future, and, if so, we should check if the name param has a / and determine if there’s an org in there.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
LysandreJikcommented, Jun 22, 2021

Yes, this is for historic purposes. The first models had no organization and were therefore at the root.

Unfortunately, for backwards compatibility purposes, it is now complicated to change the behavior.

0reactions
severocommented, Jun 22, 2021

Related: while working on the models’ data in https://observablehq.com/@huggingface/kaggle-dataset-huggingface-modelhub, I have been surprised that some of the "modelId"s are not “user/model”, but just “model” (I understand all of them are models provided by Hugging Face as the organization). eg: https://huggingface.co/bert-base-uncased

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inconsistent attachment download - SMA-Service Manager Suite
My customer having problem downloading the attachement. Usually pdf files ( 200 - 400kb max). ... The problem is the opening file time...
Read more >
Inconsistent errors with check --read-data - Getting Help
After a while, I think the issue should be fixed, but the restic check --read-data returns errors. I thought this was weird because...
Read more >
An overview of the CellML API and its implementation
CellML is an XML based language for representing mathematical models, in a machine-independent form which is suitable for their exchange ...
Read more >
Turning Machine Learning Models into APIs with Python Flask
Learn to how to make an API interface for your machine learning model in Python using Flask. Follow our step-by-step tutorial with code...
Read more >
Document changes to file upload permissions in Django 1.11
I have models: MainModel() and ... Been hitting the same issue although it's somewhat inconsistent. Some context: Only have one FileField on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found