No project description provided
Project description
@togethercomputer/together-web3.py
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)
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 details)
Built Distribution
File details
Details for the file together_web3-0.1.6.tar.gz
.
File metadata
- Download URL: together_web3-0.1.6.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e2ae0caf5d9b86c8958bfa9cf355c637ae6a91b94735d12f9c8393a2ccab324 |
|
MD5 | 95795eb6fb9ff2b9bcbe68ce70f0eb2e |
|
BLAKE2b-256 | 8903a9ff1217f67e8110ae42eb48ec0d90933cf4e1d18600e96d46fee8f8b31c |
File details
Details for the file together_web3-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: together_web3-0.1.6-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9cb619f8186dd1a4a8ee825dc111cd22209f28dc0d96570e0c74f8bafa3eea4 |
|
MD5 | ead30b12a83a3688a177f7602a10b099 |
|
BLAKE2b-256 | 878ef089d194920b9e008c66e54f665b99b25e402e01a56996db05eaebea942b |