Skip to main content

@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

Metadata

Release files for together-web3 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for together-web3 0.1.6
File Size Uploaded
together_web3-0.1.6.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for together-web3 0.1.6
File Interpreter ABI Platform
together_web3-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / together_web3-0.1.6.tar.gz

Download URL together_web3-0.1.6.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9e2ae0caf5d9b86c8958bfa9cf355c637ae6a91b94735d12f9c8393a2ccab324
BLAKE2b-256 checksum
How to use checksums
8903a9ff1217f67e8110ae42eb48ec0d90933cf4e1d18600e96d46fee8f8b31c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / together_web3-0.1.6-py3-none-any.whl

Download URL together_web3-0.1.6-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9cb619f8186dd1a4a8ee825dc111cd22209f28dc0d96570e0c74f8bafa3eea4
BLAKE2b-256 checksum
How to use checksums
878ef089d194920b9e008c66e54f665b99b25e402e01a56996db05eaebea942b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page