Skip to main content

A socket-based solution for resolving (Python / conda) environment incompatibilities

Project description

A socket-based solution for resolving (Python / conda) environment incompatibilities.

Usage Guidelines

Installation:

To install the inincompatibility package, run:

pip install inincompatibility

Example: Making Your LLMs Callable Like an API:

First, make your LLMs callable functions and import them into a .py file, like so:

# LLM_functions.py
from your_LLM import your_forward, your_backward

Next, use the inincompatibility package to run the LLM in its (Python / conda) environment and generate the necessary importable code:

python -m inincompatibility -i LLM_functions.py -o api_for_other.py

Now, you can directly import the generated code in another (Python / conda) environment:

# your_other_code.py
from api_for_other import your_forward, your_backward

Example: Additional Samples:

For more usage examples, check out the sample1 directory on GitHub.

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

inincompatibility-0.0.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inincompatibility-0.0.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file inincompatibility-0.0.2.tar.gz.

File metadata

  • Download URL: inincompatibility-0.0.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for inincompatibility-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d448ec687402e6e8ac0025b8554cc138677451f328c9ee03beebd7e78d6e33c0
MD5 e8439f83ea30531b43f1c5bf3135dfdc
BLAKE2b-256 05821187bd9089da54fe9028e859d114abd0deb45259e53c4d1f5bd4ab6e8e07

See more details on using hashes here.

File details

Details for the file inincompatibility-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for inincompatibility-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df63476fb36df26d681968e283e8e60cca8bf689e1b28f874df73afbcf31123c
MD5 e88ed3093b3bfb50f2bc8a8f11c2983b
BLAKE2b-256 65b9b2b37ee96ad597a608f58a41c15229ac5650f3b31abbd2c5c1832e5b1d2c

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