Zum Inhalt springen

Replicate Release Notes

Einträge
129
Quellen
1
Zuletzt aktualisiert

Folge Replicate, um die Release Notes in deinen Feed zu holen.

Replicate

A40-GPUs verfügbar

Replicate-Modelle können jetzt auf NVIDIA A40-GPUs ausgeführt werden, die preislich und leistungsmäßig zwischen T4 und A100 liegen.

You can now run Replicate models on NVIDIA A40 GPUs. In terms of price and performance, the A40 sits between our T4 and A100 hardware. For many models, the A40 Large can be 80-90% as fast as A100s but almost half the price.

The A40 GPU is currently available in two configurations, each with the same GPU but attached to a machine with different amounts of CPU and RAM:

| Hardware | Price | GPU | CPU | GPU RAM | RAM |
| --- | --- | --- | --- | --- | --- |
| Nvidia A40 GPU | $0.0013 per second ($0.078 per minute) | 1x | 4x | 48GB | 16GB |
| Nvidia A40 (Large) GPU | $0.0016 per second ($0.096 per minute) | 1x | 10x | 48GB | 72GB |

To choose which GPU type is used to run your model, see the **Hardware** dropdown on your model’s settings page:![select-gpu](https://github.com/replicate/cog/assets/2289/0e30fa63-6648-4eed-a142-b2c1ca0f6570) To compare price and performance of all available GPUs, see our [pricing page](https://replicate.com/pricing).

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Hardware- und Preisanzeige für trainierbare Modelle

Trainierbare Modellseiten zeigen jetzt einen Abschnitt mit Trainingshardware-Typ und -Kosten an.

Trainable model pages now have a section that indicates training hardware type and cost.

 See https://replicate.com/a16z-infra/llama7b-v2-chat#training

 ![training](https://github.com/replicate/cog/assets/2289/2eec35d4-45bf-4565-91ee-d49fe07ee2f3)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Trainings-API für Sprachmodelle

Eine neue API ermöglicht es allen Benutzern, Sprachmodelle wie LLaMA 2 oder GPT-J für bestimmte Aufgaben feinzutunen.

We built a training API for fine-tuning language models, and today we’re making it available to all Replicate users.

 You can fine-tune language models to make them better at a particular task, like classifying text, answering questions about your private data, being a chatbot, or extracting structured data from text.

 You can train models like LLaMA 2, Flan T5, GPT-J and others. Check out the [trainable language models collection](https://replicate.com/collections/trainable-language-models) to see what models can be fine-tuned, and stay tuned as we add support for more.

 To get started, check out our [guide to fine tuning a language model](https://replicate.com/docs/guides/fine-tune-a-language-model).Copy

 ```py
 training = replicate.trainings.create(
   version="a16z-infra/llama7b-v2-chat:a845a72bb3fa3ae298143d13efa8873a2987dbf3d49c293513cd8abf4b845a83",
   input={
     "train_data": "https://example.com/my-training-data.jsonl",
   },
   destination="zeke/my-custom-llama-2"
 )
 ```

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Git-Commit und -Tag für Modellversionen

Beim nächsten cog push werden Git-Commit und -Tag automatisch in das Docker-Image übernommen und auf Replicate angezeigt.

You can now see the Git commit and tag used to create new versions of a model. Run brew upgrade cog to upgrade to the latest release.

 The next time you run `cog push`, the current Git commit and tag for your model will automatically be included in the resulting Docker image, and it’ll show up on Replicate under the model page’s Versions tab.

 ![git-commit](https://github.com/replicate/cog/assets/14149230/0aacfdf2-c70e-40dc-b990-28367b501884)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Verbesserte Download-Funktion

Mehrere Ausgaben können als ZIP-Datei heruntergeladen werden, und einzelne Ausgaben werden direkt heruntergeladen statt verlinkt.

We’ve made a few improvements to the download mechanism on the website: - If you ran a model that produces multiple outputs, you can download them all as a zip file. - If you’re downloading a single output, it will now actually download instead of linking to the file’s URL.

 Happy downloading!

 ![zip-downloads](https://github.com/replicate/cog/assets/2289/1bebe72a-34f5-4b32-bab8-d59de3972fe9)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Swift-Clientbibliothek für Replicate

Replicate bietet jetzt eine Swift-Clientbibliothek zum Erstellen von KI-gestützten Apps für iOS und macOS an.

Replicate now has a client library for Swift. It’s got everything you need to build an AI-powered app for iOS and macOS using Replicate’s HTTP API.

 Add it as a package dependency to your project:Copy

 ```swift
 let package = Package(
     // name, platforms, products, etc.
     dependencies: [
         // other dependencies
         .package(url: "https://github.com/replicate/replicate-swift", from: "0.12.1"),
     ],
     targets: [
         .target(name: "<target>", dependencies: [
             // other dependencies
             .product(name: "Replicate", package: "replicate-swift"),
         ]),
         // other targets
     ]
 )
 ```

 Then, you can run predictions:Copy

 ```swift
 import Replicate

 // Get your API token at https://replicate.com/account
 private let replicate = Replicate.Client(token: <#token#>)

 let output = try await replicate.run(
     "stability-ai/stable-diffusion:db21e45d3f7023abc2a46ee38a23973f6dce16bb082a930b0c49861f96d1e5bf",
     ["prompt": "a 19th century portrait of a wombat gentleman"]
 )

 print(output)
 // ["https://replicate.com/api/models/stability-ai/stable-diffusion/files/50fcac81-865d-499e-81ac-49de0cb79264/out-0.png"]
 ``` …

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Organisationen für Zusammenarbeit

Mit Organisationen können Sie jetzt auf Replicate gemeinsam mit anderen Personen Modelle, API-Tokens, Abrechnung und Dashboards teilen.

You can now use an organization to collaborate with other people on Replicate.

 Organizations let you share access to models, API tokens, billing, dashboards, and more. When you run models as the organization, it gets billed to your shared credit card instead of your personal account.

 To get started, use the new account menu to create your organization:![A screenshot of the account menu showing shortcuts to various pages, a list of organizations, and a button to join or create an organization](https://github.com/replicate/cog/assets/2289/7f2640b7-3add-4705-a053-328760565f99)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Node.js-Clientbibliothek verfügbar

Replicate hat eine Clientbibliothek für Node.js veröffentlicht, mit der Sie Modelle und weitere API-Funktionen ausführen können.

Replicate now has a client library for Node.js. You can use it to run models and everything else you can do with the HTTP API.

 Install it from npm:Copy

 ```plaintext
 npm install replicate
 ```

 Then, you can run predictions:Copy

 ```js
 import Replicate from "replicate";

 const replicate = new Replicate({
   auth: process.env.REPLICATE_API_TOKEN,
 });

 const model = "stability-ai/stable-diffusion:27b93a2413e7f36cd83da926f3656280b2931564ff050bf9575f1fdf9bcd7478";
 const input = { prompt: "a 19th century portrait of a raccoon gentleman wearing a suit" };
 const output = await replicate.run(model, { input });
 // ['https://replicate.delivery/pbxt/GtQb3Sgve42ZZyVnt8xjquFk9EX5LP0fF68NTIWlgBMUpguQA/out-0.png']
 ```

 [Follow our guide to running a model from Node.js](https://replicate.com/docs/get-started/nodejs) or [read the full documentation on GitHub](https://github.com/replicate/replicate-javascript#readme).

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Mehr Metadaten in der Modell-API

Die API-Operation „Modell abrufen“ liefert jetzt zusätzliche Metadaten wie Ausführungsanzahl, Standardbeispiel und Titelbild-URL.

The “get a model” API operation now returns more metadata about the model: - run_count: an integer indicating how many times the model has been run. - default_example: a prediction object created with this model, and selected by the model owner as an example of the model’s inputs and outputs. - cover_image_url: an HTTPS URL string for an image file. This is an image uploaded by the model author, or an output file or input file from the model’s default example prediction.

 Here’s an example using cURL and [jq](https://stedolan.github.io/jq/) to get the [Salesforce blip-2](https://replicate.com/salesforce/blip-2) model as a JSON object and pluck out some of its properties:Copy

 ```plaintext
 curl -s \
   -H "Authorization: Token $REPLICATE_API_TOKEN" \
   -H 'Content-Type: application/json' \
   "https://api.replicate.com/v1/models/salesforce/blip-2" \
   | jq "{owner, name, run_count, cover_image_url, default_example}"
 ```

 Here’s what the response looks like:Copy

 ```json
 {
   "owner": "salesforce",
   "name": "blip-2",
   "run_count": 270306,
   "cover_image_url": "https://replicate.delivery/pbxt/IJEPmgAlL2zNBNDoRRKFegTEcxnlRhoQxlNjPHSZEy0pSIKn/gg_bridge.jpeg",
   "default_example": {
     "completed_at": "2023-02-13T22:26:49.396028Z", …

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Eingabe- und Ausgabeschemata über API abrufbar

Jedes Modell beschreibt seine Ein- und Ausgaben jetzt in einer OpenAPI-Schemastruktur, die über die API abgerufen werden kann.

Every model on Replicate describes its inputs and outputs with OpenAPI Schema Objects in the openapi_schema property. This is a structured JSON object that includes the name, description, type, and allowed values for each input or output parameter.

 Today we’ve improved our API reference documentation to clarify how to get a model’s input and output schema.

 See the updated docs at https://replicate.com/docs/reference/http#models.versions.get

 Here’s an example of how to get the input schema for [Stable Diffusion](https://replicate.com/stability-ai/stable-diffusion/api) using cURL:Copy

 ```plaintext
 curl -s \
   -H "Authorization: Token $REPLICATE_API_TOKEN" \
   -H 'Content-Type: application/json' \
   "https://api.replicate.com/v1/models/stability-ai/stable-diffusion/versions/db21e45d3f7023abc2a46ee38a23973f6dce16bb082a930b0c49861f96d1e5bf" | jq ".openapi_schema.components.schemas.Input.properties"
 ```

 Using this command, we can see all the inputs to Stable Diffusion, including their types, description, min and max values, etc:Copy

 ```json
 {
   "seed": {
     "type": "integer",
     "title": "Seed",
     "x-order": 7,
     "description": "Random seed. Leave blank to randomize the seed"
   },
   "prompt": {
     "type": "string",
     "title": "Prompt",
     "default": "a vision of paradise. unreal engine", …

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Öffentliche API als OpenAPI-Schema

Die HTTP-API von Replicate ist nun als strukturiertes OpenAPI-JSON-Schema verfügbar, das Sie herunterladen und für eigene Clients nutzen können.

OpenAPI (formerly known as Swagger) is a specification for describing HTTP APIs with structured data, including the available endpoints, their HTTP methods, expected request and response formats, and other metadata.

 You can use this schema as a reference document, or to auto-generate your own API client code, or to mock and test your existing use of Replicate’s API.

 All of the documentation you see on the [HTTP API reference page](https://replicate.com/docs/reference/http) is also available as a structured OpenAPI JSON schema.

 Download the schema at **[api.replicate.com/openapi.json](https://api.replicate.com/openapi.json)**[![](https://tjzk.replicate.delivery/markdownx/3966dafc-c430-478e-8c8a-f8b5badf6779.png)](https://api.replicate.com/openapi.json)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Alle Modelle durchstöbern

Auf der Explore-Seite können Sie jetzt alle Modelle auf Replicate durchsuchen und anzeigen.

You can now browse through all the models on Replicate. Check them out on the Explore page!Screenshot of a pagination interface above a bunch of latest models on Replicate

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Mehr Webhook-Events und Filter

Webhooks senden jetzt Ereignisse zu verschiedenen Phasen der Vorhersage, und Sie können per Filter festlegen, welche Ereignisse ausgelöst werden.

When you create a prediction with the API, you can provide a webhook URL for us to call when your prediction is complete.

 Starting today, we now send more webhook events at different stages of the prediction lifecycle. We send requests to your webhook URL whenever there are new logs, new outputs, or the prediction has finished.

 You can change which events trigger webhook requests by specifying `webhook_events_filter` in the prediction request.
 - `start`: Emitted immediately on prediction start. This event is always sent.
 - `output`: Emitted each time a prediction generates an output (note that predictions can generate multiple outputs).
 - `logs`: Emitted each time log output is generated by a prediction.
 - `completed`: Emitted when the prediction reaches a terminal state ( `succeeded`/ `canceled`/ `failed`). This event is always sent.

 For example, if you only wanted requests to be sent at the start and end of the prediction, you would provide:Copy

 ```json
 {
   "version": "5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa",
   "input": {
     "text": "Alice"
   },
   "webhook": "https://example.com/my-webhook",
   "webhook_events_filter": ["start", "completed"]
 }
 ```

 Requests for event types `output` and `logs` will be sent at most once every 500ms.

 Requests for event types `start` and `completed` will always be sent. …

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Verbesserte Python-Beispielcodes

Die Python-Beispielcodes in der API-Ansicht enthalten jetzt alle notwendigen Informationen zum Ausführen einer Vorhersage, einschließlich Eingaben und Ausgaben.

We’ve made it even easier to start building with Replicate’s API. When you click on the API tab for a model, the Python example code now has everything you need to run a prediction, including code for all of the model’s inputs and outputs. These new code snippets include documentation and defaults for each input, so you can focus on coding, with less context switching between the API docs and your editor.

 To learn more about how to get started, check out our [“Run a model from Python” guide](https://replicate.com/docs/get-started/python).![Python example code for andreasjansson/cantable-diffuguesion](https://user-images.githubusercontent.com/7659/212695281-75b08ff0-522c-47ce-9d8f-2614b6316a01.png)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Laufende Vorhersagen abbrechen

Sie können jetzt laufende Vorhersagen über Ihre Dashboard-Seite mit einer Schaltfläche abbrechen, auch wenn Sie die Seite gewechselt haben.

Have you ever kicked off a prediction, then, after thinking about it, realized you got one of the settings wrong or wanted to tweak the prompt? Well, now you can cancel that prediction, even if you’ve navigated away from the page you were on or made it through the API. On the website, go to your dashboard, find the running prediction, and you’ll now see it live-updating with a handy “Cancel” button.A running prediction showing some dancing robots in training with a cancel button underneath.

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

img2img-Unterstützung für DreamBooth

Modelle, die mit der DreamBooth-API erstellt wurden, unterstützen jetzt auch img2img, sodass neben dem Prompt optional ein Bild als Eingabe gesendet werden kann.

We’ve added img2img support to models created with our DreamBooth API.

 This means you can optionally send both a `prompt` and initial `image` to generate new images (in addition to the other parameters specified in your DreamBooth model’s API page).

 Input:

 `prompt`: photo of zeke playing guitar on stage at concert

 `image`: https://www.pexels.com/photo/man-playing-red-and-black-electric-guitar-on-stage-167382/

 ![base](https://user-images.githubusercontent.com/27/210173619-2b3108d6-976e-471b-b7b8-b32b73317e1b.jpg)

 Output:

 ![zeke](https://user-images.githubusercontent.com/27/210173447-0e774d8c-7742-4990-87ff-b9e50b8c0d98.png)

 To get started building and pushing your own DreamBooth model, check out [the blog post](https://replicate.com/blog/dreambooth-api).

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Prediction-Daten auf der Website löschbar

Du kannst eine Vorhersage jetzt manuell auf der Website löschen, indem du auf der Detailseite auf „Delete“ klickst, wodurch auch alle zugehörigen Ausgabedaten entfernt werden.

You can now manually delete a prediction on the website. You’ll find a “Delete” button on the prediction detail page, e.g. https://replicate.com/p/{prediction_id}. Clicking this link will completely remove the prediction from the site, including any output data and output files associated with it.delete-prediction

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

API-Prediction-Daten werden nicht mehr gespeichert

Für über die API erstellte Vorhersagen werden die Benutzerdaten eine Stunde nach Abschluss automatisch entfernt; dies gilt für neue Konten, bestehende Konten sind nicht betroffen.

By popular request, we no longer store data for predictions made using the API.

 User data is automatically removed from predictions an hour after they finish. The prediction itself is not deleted, but the `input` and `output` data for the prediction is removed. This only applies to predictions created with the API, but not predictions created on the website.

 This is enabled for new accounts starting today, but we know that some users may be relying on prediction data to exist for more than an hour, so we’ve not enabled this for any existing accounts.

Originalquelle(öffnet in neuem Tab)Problem melden