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

Mehr RAM für T4-Modelle

Modelle auf T4-GPUs erhalten jetzt bis zu 16 GB RAM statt 8 GB, was das Laden großer Gewichte erleichtert, ohne dass sich der Preis ändert.

Until recently, models running on T4 GPUs would get 4 CPUs, 8 GB of RAM and 16 GB of GPU RAM. We got feedback from model authors that this caused issues with loading more than 8GB of weights into the GPU - it’s possible, but it requires writing more intricate code to stream weights from disk to GPU RAM without loading the whole weights into main RAM at once.

Starting today, T4 models can now use up to 16 GB of RAM. This should make it easier to make use of all of the GPU RAM on T4 GPUs. There is no pricing change for this upgrade.

You can see the resources available for each hardware type on [our pricing page](https://replicate.com/pricing).

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

GitHub-Sicherheitsscanning für API-Tokens

Replicate ist dem GitHub Secret Scanning Partnerprogramm beigetreten, sodass versehentlich veröffentlichte API-Tokens erkannt und das Konto geschützt wird.

When working with secrets like API tokens, you should always store them in your app configuration (like environment variables) rather than directly in your codebase. Keeping sensitive information separate from your source code prevents accidental exposure.

This is a common and well-known security practice, but sometimes you slip up and accidentally include a secret in your codebase. That’s where GitHub security scanning comes in.

We’ve partnered with GitHub and are now members of their [Secret scanning partner program](https://docs.github.com/en/code-security/secret-scanning/secret-scanning-partner-program), helping to keep your account safe. Whenever GitHub finds a Replicate API token in a public repository, they notify us so we can take proper steps to protect your account from unwanted use.

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Bearer-Token-Authentifizierung eingeführt

Die API unterstützt jetzt das Standard-Autorisierungsschema 'Bearer' zusätzlich zum bisherigen 'Token'-Format, das weiterhin funktioniert.

When using an HTTP API, a Bearer token is like a password that you specify in the Authorization header of your HTTP requests to access protected resources.

We’ve updated our API to support a standard `Bearer` authorization scheme rather than a custom/non-standard Token scheme. We’ve also updated our [API docs](https://replicate.com/docs/reference/http) and [OpenAPI specification](https://api.replicate.com/openapi.json) to use the new format:Copy

```shell
curl -H "Authorization: Bearer r8_...." https://api.replicate.com/v1/models/replicate/hello-world
```

The old `Authorization: Token r8...` format is still supported, so your existing API integrations will continue to work without any code changes.

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Deployments über die API verwalten

Deployments lassen sich jetzt nicht nur über die Website, sondern auch über die HTTP-API erstellen, abrufen und aktualisieren.

Deployments give you more control over how your models run. You can scale them up and down based on demand, customize their hardware, and monitor performance and predictions without editing your code.

Managing deployments was previously only possible on the web, but you can now also [create](https://replicate.com/docs/reference/http#deployments.create), [read](https://replicate.com/docs/reference/http#deployments.list), and [update](https://replicate.com/docs/reference/http#deployments.update) deployments using Replicate’s HTTP API.

Here’s an example API request that updates the number of min and max instances for an existing deployment:Copy

```shell
curl -s \
  -X PATCH \
  -H "Authorization: Token $REPLICATE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"min_instances": 3, "max_instances": 10}' \
  https://api.replicate.com/v1/deployments/acme/my-app-image-generator
```

Check out the API docs for deployments:
- [Create a deployment](https://replicate.com/docs/reference/http#deployments.create)
- [List deployments](https://replicate.com/docs/reference/http#deployments.list)
- [Get a deployment](https://replicate.com/docs/reference/http#deployments.get)
- [Update a deployment](https://replicate.com/docs/reference/http#deployments.update)

If you’re new to deployments, check out the [getting started guide](https://replicate.com/docs/deployments).

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

3D-Viewer für GLB-Dateien im Browser

Modelle, die GLB-Dateien ausgeben, bieten jetzt einen webbasierten Viewer, um das 3D-Ergebnis direkt im Browser zu erkunden.

Models like adirik/imagedream that output GLB files now have a web-based viewer, so you can explore the 3D output right in your browser.

Your browser does not support the video tag.

The GLB format encapsulates textures, models, and animations into a single file which can be shared and used across platforms and devices. This makes it useful in web development, augmented reality projects, and game development.

If you’re working with AI models that produce PLY outputs, you can use a model like [camenduru/lgm-ply-to-glb](https://replicate.com/camenduru/lgm-ply-to-glb/readme) to convert PLY files to GLB.

There’s also a [collection of models for making 3D stuff](https://replicate.com/collections/3d-models).

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Aufgabenorientierte Modell-Sammlungen

Die kuratierten Modell-Sammlungen sind jetzt stärker auf konkrete Aufgaben wie Bild-Upscaling oder Embedding-Erzeugung ausgerichtet und enthalten ausführlichere Beschreibungen.

We’ve updated our curated model collections to be more oriented around tasks like upscaling images, generating embeddings, or getting structured data from language models. This should make it easier to find the right models for the problems you’re trying to solve.

See [replicate.com/collections](https://replicate.com/collections) [![](https://tjzk.replicate.delivery/markdownx/ff2f68d6-fdd1-4b05-b526-3af5a35aa3f9.png)](https://replicate.com/collections) Each collection now also includes a more detailed summary of the kinds of tasks you can perform with models in that collection. For example, [vision models](https://replicate.com/collections/vision-models) can be used for all sorts of tasks like captioning images, answering questions about images, or detecting objects: [![](https://tjzk.replicate.delivery/markdownx/badaec78-42ee-473b-b19d-615f2757e9cd.png)](https://replicate.com/collections/vision-models)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Webhook-Signierung für mehr Sicherheit

Replicate signiert ab sofort jeden Webhook mit einem eindeutigen Schlüssel pro Benutzer oder Organisation, um Authentizität zu bestätigen und unbefugten Zugriff zu verhindern.

Webhooks provide real-time updates about your predictions. You can specify an endpoint when you create a prediction, and Replicate will send HTTP POST requests to that URL when the prediction is created, updated, and finished.

Starting today, we now sign every webhook and its metadata with a unique key for each user or organization. This allows you to confirm the authenticity of incoming webhooks and protect against unauthorized access and replay attacks.

Learn how to verify incoming webhooks on our [webhooks guide](https://replicate.com/docs/webhooks#verifying-webhooks)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

SDXL-Feintuning im Web

SDXL-Modelle lassen sich jetzt über die Weboberfläche feinabstimmen: Namen wählen, Bilder per Drag-and-drop hochladen und Training starten – ganz ohne Code.

In August 2023, we added an API for fine-tuning SDXL, Stability AI’s most powerful open-source image generation model. We made it possible to create your own custom models with a handful of training images and a few lines of code, then generate new images in your own style. In the last few months, people have created lots of interesting SDXL fine-tunes.

You can now create SDXL fine-tunes from the web. Choose a name for your model, drag and drop a zip file of images, and kick off the training process, without writing any code.

To get started, visit [replicate.com/stability-ai/sdxl/train](https://replicate.com/stability-ai/sdxl/train)

[![form](https://tjzk.replicate.delivery/markdownx/aa9844dc-8ee5-4cae-961e-06d1acce2722.png)](https://replicate.com/stability-ai/sdxl/train)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Bildvergleich mit Schieberegler

Ein neuer Schieberegler ermöglicht den direkten Vergleich von Eingabe- und Ausgabebildern für alle Modelle, die Bilder verarbeiten und erzeugen.

We’ve added a new slider component that makes it easier to compare image inputs to outputs. Drag the slider to the left and right to compare the “before and after” images.

This feature works for all models that take an input image and produce an output image, like [image restoration models](https://replicate.com/collections/image-restoration) and [upscalers](https://replicate.com/collections/super-resolution).

[![slider](https://tjzk.replicate.delivery/markdownx/d8e6914a-7dc9-48b7-a42d-7256dc4cb32e.png)](https://replicate.com/batouresearch/high-resolution-controlnet-tile)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Code-Snippets für jede Vorhersage

Jede Vorhersage auf der Webseite enthält jetzt Code-Snippets für Node.js, Python und andere Sprachen, die direkt in eigene Projekte übernommen werden können.

Every prediction on the web now includes code snippets for Node.js, Python, and other languages. This lets you tinker with a model on the web, then grab some useable code and run with it.

To view these code snippets, click the language tabs under the Input heading on any model or prediction page: [![](https://github.com/replicate/cog/assets/2289/4735ffdd-346c-48c2-a7f1-fb5d5c396d66)](https://replicate.com/stability-ai/sdxl?input=nodejs) Clicking one of these language tabs changes the page URL, which means you can also deep link to language-specific snippets for any model:
- [Run SDXL with Python](https://replicate.com/stability-ai/sdxl?input=python)
- [Run whisper with Node.js](https://replicate.com/vaibhavs10/incredibly-fast-whisper?input=nodejs)
- [Run LLaVA with cURL](https://replicate.com/yorickvp/llava-13b?input=http) Here’s a five-minute video showing off how to use this new feature to run a model in the browser, then grab the code to run the model in your own project using Replicate’s API:

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

API-Endpunkt zum Erstellen von Modellen

Die Replicate-API bietet jetzt einen Endpunkt zum Erstellen von Modellen, der die Automatisierung der Modellerstellung, einschließlich Fine-Tunes von SDXL und Llama 2, ermöglicht.

Replicate’s API now has an endpoint for creating models.

You can use it to automate the creation of models, including fine-tunes of [SDXL](https://replicate.com/docs/guides/fine-tune-an-image-model) and [Llama 2](https://replicate.com/docs/guides/fine-tune-a-language-model). ## Anchor for curl-usagecURL usage Here’s an example that uses cURL to create a model with a given owner, name, visibility, and hardware:Copy

```shell
curl -s -X POST -H "Authorization: Token $REPLICATE_API_TOKEN" \
    -d '{"owner": "my-username", "name": "my-new-model", "visibility": "public", "hardware": "gpu-a40-large"}' \
    https://api.replicate.com/v1/models
```

The response is a JSON object of the created model:Copy

```json
{
  "url": "https://replicate.com/my-username/my-new-model",
  "owner": "my-username",
  "name": "my-new-model",
  "description": null,
  "visibility": "public",
  "github_url": null,
  "paper_url": null,
  "license_url": null,
  "run_count": 0,
  "cover_image_url": null,
  "default_example": null,
  "latest_version": null
}
```

To see all the hardware available for your model to run, consult our [endpoint for listing hardware](https://replicate.com/docs/reference/http#hardware.list).Copy

```shell
curl -s -H "Authorization: Token $REPLICATE_API_TOKEN" \
    https://api.replicate.com/v1/hardware
``` …

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Verbesserte Trainingsdetailseiten

Die Trainingsdetailseiten zeigen jetzt Basis- und Zielmodell, Metadaten über Ein- und Ausgaben sowie Code-Snippets zum Ausführen des feinabgestimmten Modells.

When you kick off a training process to fine-tune your own model, there’s a page you can visit to view the status of the training, as well as the inputs and outputs. We’ve made some recent improvements to those pages: 1. The header now shows the base model and destination model you used when fine-tuning. 2. Metadata about the training job is now diplayed above the inputs and outputs to make it easier to see the important details without having to scroll down the page. 3. We’ve added code snippets you can copy and paste to run your new fine-tuned model.

![](https://tjzk.replicate.delivery/markdownx/bb58bbb2-005e-4e60-a42f-2c105f1c0bc9.png)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Vorhersageparameter als JSON

Vorhersageparameter lassen sich nun auf der Detailseite als JSON anzeigen, was den Übergang von der Web- zur API-Nutzung erleichtert.

You can now view prediction parameters as JSON from the prediction detail page.

This improves the workflow for experimenting in the web interface and then transitioning to making predictions from the API, using code.

![](https://tjzk.replicate.delivery/markdownx/dd188d1d-a59c-4faa-8556-d27380a40a67.png)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

API zum Auflisten öffentlicher Modelle

Die Replicate-API bietet nun einen Endpunkt zum Auflisten öffentlicher Modelle, um neu veröffentlichte Modelle zu entdecken und eigene Tools zu bauen.

Replicate’s API now has an endpoint for listing public models.

You can use it to discover newly published models, and to build your own tools for exploring Replicate’s ecosystem of thousands of open-source models. ## Anchor for curl-usagecURL usage Here’s an example that uses cURL and [jq](https://jqlang.github.io/jq/) to fetch the URLs of the 25 most recently updated public models:Copy

```shell
 curl -s -H "Authorization: Token $REPLICATE_API_TOKEN" \
    https://api.replicate.com/v1/models | jq ".results[].url"
``` The response is a paginated JSON array of model objects:Copy

```json
{
  "next": null,
  "previous": null,
  "results": [
    {
      "url": "https://replicate.com/replicate/hello-world",
      "owner": "replicate",
      "name": "hello-world",
      "description": "A tiny model that says hello",
      "visibility": "public",
      "github_url": "https://github.com/replicate/cog-examples",
      "paper_url": null,
      "license_url": null,
      "run_count": 5681081,
      "cover_image_url": "...",
      "default_example": {...},
      "latest_version": {...}
    }
  ]
}
```

## Anchor for javascript-usageJavaScript usage We’ve added this new operation to the [Replicate JavaScript client](https://github.com/replicate/replicate-javascript#replicatemodelslist):Copy

```plaintext …

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Deployments für mehr Kontrolle

Mit Deployments können Modelle über private, feste API-Endpunkte ausgeführt werden, mit Konfiguration von Version, Hardware und Skalierung.

You can now create a deployment to get more control over how your models run. Deployments allow you to run a model with a private, fixed API endpoint. You can configure the version of the model, the hardware it runs on, and how it scales.

Using deployments, you can:
- Roll out new versions of your model without having to edit your code.
- Keep instances always on to avoid cold boots.
- Customize what hardware your models run on.
- Monitor whether instances are booting up, running, or processing predictions.
- View predictions that are flowing through your models.

Deployments work with both public models and your own private models.

![](https://tjzk.replicate.delivery/markdownx/cafd7235-0842-4bee-bf9e-3591382d2362.png)

🚀 [**Check out the deployments guide**](https://replicate.com/docs/deployments) to learn more and get started.

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Vorhersage-Parameter bei Aktualisierung

Beim Erstellen einer Vorhersage im Web wird ein Query-Parameter hinzugefügt, sodass die Seite nach dem Aktualisieren die erstellte Vorhersage anzeigt.

When you create a prediction on the web, we now append a query parameter ?prediction=<uuid>, so that if you refresh the page, you see that prediction instead of the form prefilled with the default inputs. Previously, if you created a prediction on the web and refreshed, you’d lose the prediction and have to go spelunking for it on your dashboard.

![query-param](https://github.com/replicate/cog/assets/2289/32422cf8-fbf9-4ed6-86b2-ce43a13c93f6)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Trainingsprotokolle im Vollbildmodus

You can now expand your training logs and view them full-screen.

![click-fullscreen-logs](https://github.com/replicate/cog/assets/2289/495b2a51-914e-4f18-b7bf-6407e6958710)

\---![fullscreen-logs](https://github.com/replicate/cog/assets/2289/f405cb88-fa2f-4679-9778-3005295d0210)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Dynamische Status-Favicons

Der Status von Vorhersagen wird jetzt im Favicon des Browser-Tabs angezeigt, sodass der Abschluss ohne Tab-Wechsel erkennbar ist.

✅ We’ve added a new feature to show the prediction status in the favicon of the browser tab. This makes it easier to know when your running predictions have completed without having to switch tabs.

![favicons](https://github.com/replicate/cog/assets/2289/8beaa2e9-ab9f-4927-9b7f-06d6028ea5ab)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Streaming-Ausgabe für Sprachmodelle

Die API unterstützt jetzt SSE-Streams für Sprachmodelle, um Live-Ausgaben während der Ausführung zu liefern.

Replicate’s API now supports server-sent event (SSE) streams for language models, giving you live output as the model is running. See the announcement blog post and our streaming guide for more details about how to use streaming output.

![eventsource example](https://github.com/replicate/cog/assets/2289/f52f930b-ca85-49fc-8fe1-16a94a5deb66)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Mehrere API-Tokens für Benutzer

Benutzer können nun mehrere persönliche API-Tokens erstellen, benennen und bei Bedarf zurücksetzen.

You can now create multiple personal API tokens at https://replicate.com/account/api-tokens

They’re just like organization tokens, but they’re only for your personal user account. You can name your tokens to make them distinguishable, and reset them if needed.

![multiple-tokens](https://github.com/replicate/cog/assets/2289/466ee04d-10e1-4637-9066-1a5c25c481d4)

Originalquelle(öffnet in neuem Tab)Problem melden