Skip to content

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