Avoid trust_remote_code with transformers v5.6.0

#2
by tomaarsen HF Staff - opened

Hello!

Pull Request overview

  • Drop the auto_map shim and modeling_e5_omni.py re-export, and remove trust_remote_code=True from the README snippet
  • Fix sentence_bert_config.json: transformer_task should now be "any-to-any" as we need to import with AutoModelForMultimodalLM instead of AutoModel
  • Pin transformers>=5.6.0 in the README install line and in config_sentence_transformers.json

Details

This is the 7B mirror of the https://huggingface.co/Haon-Chen/e5-omni-3B/discussions/3 PR. See that PR for some more details!

  • Tom Aarsen
tomaarsen changed pull request status to open
Haon-Chen changed pull request status to merged

Sign up or log in to comment