transformers.js
5334e7ee - Add support for Phi-3.5-vision-instruct (#1094)

Commit
201 days ago
Add support for Phi-3.5-vision-instruct (#1094) * Add slice tensor operator * Add slice unit test * Add support for Phi3V & Phi3.5V * Improve padding and use smart resizing * Formatting * Relax precision for musicgen test * Add interpolate upscale unit test * Move slice tensor op test * Fix `image_sizes` and `num_img_tokens` * Add phi3v image processing unit tests * Use ONNX slice op for improved performance * Fix phi3v image processing * Support passing parameters to phi3v processor call function * Update phi3v processor unit tests * Move phi3_v processor unit test to folder
Author
Parents
  • File
    README.md
  • docs/snippets
    • 6_supported-models.snippet
  • src
    • base
      • File
        image_processors_utils.js
    • File
      configs.js
    • File
      models.js
    • models
      • idefics3
        • File
          image_processing_idefics3.js
      • File
        image_processors.js
      • phi3_v
        • File
          image_processing_phi3_v.js
        • File
          processing_phi3_v.js
      • File
        processors.js
    • ops
      • File
        registry.js
    • utils
      • File
        tensor.js
  • tests
    • models/phi3_v
      • File
        test_image_processing_phi3_v.js
      • File
        test_processor_phi3_v.js
    • utils
      • File
        tensor.test.js
      • File
        tensor_ops.test.js