-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PETALS
: Distributed Inference and Fine-tuning of Large Language Models Over The Internet
#347
Labels
Comments
I found that the Python version of LangChain supports Petals. |
yuiseki
changed the title
PETALS:
Dec 17, 2023
Distributed Inference and Fine-tuning of Large Language Models Over The Internet
PETALS
: Distributed Inference and Fine-tuning of Large Language Models Over The Internet
Raspberry Piでのフィジビリティスタディ
手順from transformers import AutoTokenizer
from petals import AutoDistributedModelForCausalLM
# Choose any model available at https://health.petals.dev
model_name = "petals-team/StableBeluga2" # This one is fine-tuned Llama 2 (70B)
# Connect to a distributed network hosting model layers
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoDistributedModelForCausalLM.from_pretrained(model_name)
# Run the model as if it were on your computer
inputs = tokenizer("What is petals?", return_tensors="pt")["input_ids"]
outputs = model.generate(inputs, max_new_tokens=10)
print(tokenizer.decode(outputs[0])) sudo apt install pip -y
pip install git+https://github.com/bigscience-workshop/petals
python main.py |
Windows 10, WSL2でpetalsのサーバーになってみる
名前が載ったので満足 |
Amazing! I think we can jointly explore the potential of PETAL for Smart Maps. I will be following your experiments with Raspberry Pi soon. |
情報共有の目的は達成できたと思うので閉じます |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: