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": "George Washington was the first",
}
),
)
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
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.0.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for together_web3-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 948dd1d9f7f82c9c5470ccadd0c85be16eaa4f858000891a818150057a5c7642 |
|
MD5 | e918fe96b65c9779a74a2f02c0365e7e |
|
BLAKE2b-256 | f56687d289180558a7d2c87dd7e303570de29e35a05e43ea976da8c0d13d125c |