Skip to content

add mappings from public models that have a weights_url #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zeke
Copy link
Member

@zeke zeke commented Jun 18, 2025

This PR adds more model mappings, derived by looking in public model data for weights_url:

import models from 'all-the-public-replicate-models'
import {chain} from 'lodash-es'

const replicateModelsWithHuggingFaceWeights = chain(models)
  .filter(model => model.weights_url?.startsWith('https://huggingface.co'))
  .orderBy('url', 'asc')
  .map(model => ({
    hfModel: model.weights_url.replace('https://huggingface.co/', '').split('/').slice(0,2).join('/'),
    providerModel: model.url.replace('https://replicate.com/', '').split('/').slice(0,2).join('/'),
  }))
  .value()

process.stdout.write(JSON.stringify(replicateModelsWithHuggingFaceWeights, null, 2))

Kinda messy. Not sure we should merge it.

@zeke zeke changed the title Register candidate mappings add mappings from public models that have a weights_url Jun 18, 2025
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.

1 participant