backprop
1.0.0
backprop使得使用、微調和部署最先進的 ML 模型變得簡單。
使用預先訓練的模型解決各種任務,或針對您自己的任務在一行中微調。
您可以使用backprop解決開箱即用的任務:
對於更具體的用例,您可以透過微調來調整具有少量資料和單行程式碼的任務。
⚡ 開始使用 | 安裝,幾分鐘介紹 |
---|---|
範例 | 微調和使用範例 |
?文件 | 有關任務推理和微調的深入文檔 |
型號 | 可用型號概覽 |
透過 PyPi 安裝backprop傳播:
pip install backprop
任務充當接口,讓您輕鬆使用各種受支援的模型。
import backprop
context = "Take a look at the examples folder to see use cases!"
qa = backprop . QA ()
# Start building!
answer = qa ( "Where can I see what to build?" , context )
print ( answer )
# Prints
"the examples folder"
您可以在自己的機器上運行所有任務和模型,或者使用我們的推理 API 在生產中運行,只需指定您的api_key
即可。
了解如何使用所有可用任務。
每個任務都實現微調,讓您可以透過一行程式碼調整模型以適應您的特定用例。
經過微調的模型可以輕鬆上傳到生產環境,讓您專注於建立出色的應用程式。
import backprop
tg = backprop . TextGeneration ( "t5-small" )
# Any text works as training data
inp = [ "I really liked the service I received!" , "Meh, it was not impressive." ]
out = [ "positive" , "negative" ]
# Finetune with a single line of code
tg . finetune ({ "input_text" : inp , "output_text" : out })
# Use your trained model
prediction = tg ( "I enjoyed it!" )
print ( prediction )
# Prints
"positive"
# Upload to backprop for production ready inference
# Describe your model
name = "t5-sentiment"
description = "Predicts positive and negative sentiment"
tg . upload ( name = name , description = description , api_key = "abc" )
請參閱其他任務的微調。
無需經驗
數據是瓶頸
有海量的模型
經濟有效地部署模型是一項艱鉅的工作
查看我們的文件以了解深入的任務推理和微調。
最先進模型的精選清單。
使用 CLIP 進行零樣本影像分類。
backprop依賴許多優秀的庫來工作,最值得注意的是:
發現錯誤或對新任務和模型有想法?打開一個問題。