LinWeizheDragon / FLMR

The huggingface implementation of Fine-grained Late-interaction Multi-modal Retriever.
42 stars 2 forks source link

load FLMR Retrieval Model Wrong! #6

Closed bitccty closed 3 months ago

bitccty commented 4 months ago

code

flmr_model = FLMRModelForRetrieval.from_pretrained(
        "LinWeizheDragon/FLMR",
        query_tokenizer=query_tokenizer,
        context_tokenizer=context_tokenizer,
    )

error

TypeError: Object of type FLMRTextConfig is not JSON serializable.
LinWeizheDragon commented 4 months ago

Hi, this is an internal huggingface error, which we don't know why it happens. Simply upgrade your huggingface library to a more recent version to resolve this error.