Skip to main content

Model defuser helper for HF Transformers.

Project description

image

Defuser

GitHub release PyPI - Version PyPI Downloads

Model defuser helper for HF Transformers >= 5.0. In HF Transformers 5.x releases, many MoE modules became auto-stacked or auto-fused by new modeling code which has benefits but also downsides.
  • Goal is to provide naive module/layer forwarding code for all models supported by HF transformers where run-time weight and structure level optimizations such weight merging, stacking, fusing are reversed so the model is operating in a simple naive state.
  • There are cases, quantization libraries, where we need to run inference where module input/output needs to be individually captured and this pkg can help complete this task.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

defuser-0.0.4.tar.gz (25.2 kB view details)

Uploaded Source

File details

Details for the file defuser-0.0.4.tar.gz.

File metadata

  • Download URL: defuser-0.0.4.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for defuser-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b7a87cb8d53fe3f0d672b086df31a385b5fc6795d1bd9ca3d3f4b8e0f28c6ca0
MD5 281706512c295dd7c27f0ad7fce9c262
BLAKE2b-256 a1ae4104d4da6845170f7d809d0f9e35e0f46568cea5415929ee836bb075f400

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page