Skip to main content

No project description provided

Project description

@togethercomputer/together-web3.py build

from together_web3.computer import LanguageModelInferenceRequest
from together_web3.together import TogetherWeb3

together_web3 = TogetherWeb3()
result = await together_web3.language_model_inference(
    from_dict(
        data_class=LanguageModelInferenceRequest,
        data={
            "model": "gpt2",
            "prompt": "Alan Turing was",
        }
    ),
)
print("result", result)

See examples/example.py

Generate an image

python examples/example.py "Rainbow unicorn" "StableDiffusion" \
  | grep image_base64 | cut -d\" -f4 | base64 -d > x.jpg && open x.jpg

Publish to PyPi

GitHub repo > Releases > Draft a new Release > Choose a tag > Create new tag on publish >

Name the tag using the current version from pyproject.toml with a "v" e.g. v1.0.9.

Publish Release

In the repo toolbar select > Actions

  • Verify the publish workflow is running and completes successfully

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

together_web3-0.1.6.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

together_web3-0.1.6-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

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