replicate/replicate-python

[Feature Request] Lower level model access

AaEll opened this issue · 1 comments

Hi,

I have an application that I need the token scores, and lower level access to <eos> and <bos> tokens.

If you have time, I would appreciate this implemented. Until then am I planning to use the huggingface https://api-inference.huggingface.co/models/bert-base-uncased for token scores

Hi @AaEll. What a model takes as input and provides as output depends on the implementation of the model itself. If you need something else that a given model isn't providing, you could try finding another model that has what you need, or — if it's open source — you could try forking your own version.

For example, the official SDXL model generates images in PNG format. If you wanted it to generate JPEGs instead, say, then you could fork that model, change the code, and push up your own version to Replicate.