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

Abschied von Python 3.7

Modelle mit Python 3.7 werden ab dem 15. November nicht mehr unterstützt und liefern dann einen Fehler.

Replicate will stop supporting models built with Python 3.7 at 12:00 PM UTC (Coordinated Universal Time) on Friday, November 15th.

Python 3.7 was declared end-of-life in late June 2023. Since then, we’ve continued running models built with it to give model maintainers time to migrate to newer Python versions.

Although we would like to continue running these models indefinitely, we must prioritize the security needs of our customers. After Python 3.7 support ends, requests to affected models will fail with a 400-level error with an explanation.

Please update your models to a newer Python version before this date to avoid any interruptions, and let us know if you have questions or need help updating your models.

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Kleine Verbesserungen bis 25. Oktober 2024

Python 3.6/3.7-Unterstützung eingestellt, Pydantic 2 unterstützt, Inpainting und Video im Playground hinzugefügt.

  • Dropped support for running Python 3.6 and 3.7 models
    • Dropped support for pushing Python 3.8 models, but existing ones will still run
    • Added support for Pydantic 2 ### Anchor for playgroundPlayground
    • Added inline inpainting to the playground
    • Added video to the playground
    • Added more granular grid sizes to the playground
    • Fixed a bug that caused double submissions on the playground form
    • Added better handling for unsupported outputs on the playground
    • Improved focus states in the grid and list view for the playground
    • Added the ability to delete items from the playground grid
    • Made keyboard shortcuts more visible for the playground
    • Improved scrolling performance for playground ### Anchor for webWeb
    • Relaunched the about page, including job roles and applications
    • Better handle longer queue lengths for deployment metrics
    • Fixed a display bug with pricing on models for signed out users
    • Fixed some z-index weirdness for signed out users
    • Improved copy / saving of streamed images on web
    • Fixed bugs in per-model API endpoint documentation
    • Handled models without a cover image better, especially on social media
    • Reduced inconsistencies for input schema tables between model versions and the model API tab
    • Improved display of plural units in the model pricing table …

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

61. The little things, week ending October 25, 2024October 25, 2024

Anchor for runtimeRuntime

- Dropped support for running Python 3.6 and 3.7 models
- Dropped support for pushing Python 3.8 models, but existing ones will still run
- Added support for Pydantic 2

### Anchor for playgroundPlayground
- Added inline inpainting to the [playground](https://replicate.com/playground)
- Added video to the playground
- Added more granular grid sizes to the playground
- Fixed a bug that caused double submissions on the playground form
- Added better handling for unsupported outputs on the playground
- Improved focus states in the grid and list view for the playground
- Added the ability to delete items from the playground grid
- Made keyboard shortcuts more visible for the playground
- Improved scrolling performance for playground

### Anchor for webWeb
- Relaunched the [about](https://replicate.com/about) page, including job roles and applications
- Better handle longer queue lengths for deployment metrics
- Fixed a display bug with pricing on models for signed out users
- Fixed some z-index weirdness for signed out users
- Improved copy / saving of streamed images on web
- Fixed bugs in per-model API endpoint documentation
- Handled models without a cover image better, especially on social media
- Reduced inconsistencies for input schema tables between model versions and the model API tab
- Improved display of plural units in the model pricing table …

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Playground (Beta)

Der neue Playground ermöglicht das schnelle Ausprobieren und Vergleichen von Modellen mit Bildrastern und Code-Generierung.

Playground is a way to quickly try out and compare the output of models on Replicate.

![A screenshot of the playground interface, showing a grid of images and a collection of inputs](https://tjzk.replicate.delivery/markdownx/d7905466-29ef-4791-9780-caa1ed969615.png)

You can:
- Create grids of images and compare them
- Grab the code to generate the images with Replicate
- Test different models, prompts, and settings, side-by-side
- Keep a scrapbook and export images in bulk

Playground is currently in beta, and works with any FLUX and related fine-tunes. Try it out at [replicate.com/playground](https://replicate.com/playground).

We’d love to hear what you think. Send your feedback to [playground@replicate.com](mailto:playground@replicate.com).

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Neue Dokumentation

Die Dokumentation wurde neu gestaltet und in vier Abschnitte organisiert, mit neuen Codebeispielen und erweiterter API-Referenz.

A screenshot of the new docs homepage

Documentation now has a cleaner design, better navigation, and lots of new content to help you build with Replicate.

It’s organized into four sections:
- Getting started: tutorials to help you get up and running quickly
- Guides: step-by-step instructions and deeper dives into specific topics
- Topics: detailed explanations of how Replicate works
- Reference: complete documentation for Replicate’s client libraries and API

We’ve added dozens of new code samples, detailed guides for common use cases, and an expanded API reference.

Take a look at [replicate.com/docs](https://replicate.com/docs).

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Synchrones API und schnellere Antworten

Die Client-Bibliotheken und die API antworten jetzt sofort und liefern Dateiobjekte statt HTTP-URLs, was die Ausführung von Modellen beschleunigt.

Our client libraries and API are now much faster at running models, particularly if a file is being returned.

The API now returns the response immediately. Before, you would have to poll to get the result.

If you’re using the Node.js or Python client libraries, you don’t have to worry about this. Upgrade to the latest version and it gets faster. Also, instead of returning HTTP URLs, they now return file objects, which helps you write them to storage or pass to HTTP responses.

**Node.js**

Install the beta version of the client library:Copy

```plaintext
npm install replicate@latest
```

Then run the model:Copy

```jsx
import Replicate from "replicate";
import fs from "node:fs";

const replicate = new Replicate();
const [output] = await replicate.run("black-forest-labs/flux-schnell", { input: { 
	prompt: "astronaut riding a rocket like a horse"
}});

// It now returns a file object
fs.writeFileSync("my-image.webp", output);

// Or, you can still get an HTTP URL
console.log(output.url())
```

**Python**

Update the client library:Copy

```plaintext
pip install --upgrade replicate
```

Then run the model:Copy

```python
[output] = replicate.run(
  "black-forest-labs/flux-schnell",
  input={"prompt": "astronaut riding a rocket like a horse"}
);

with open('output.webp', 'wb') as file:
    file.write(output.read())

print(output.url)
``` …

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Große Logausgaben können gekürzt werden

Bei Vorhersagen oder Trainings mit sehr großen Logmengen werden die Logs nun gekürzt und nur die ersten und letzten Zeilen behalten.

Predictions or trainings that log particularly large volumes of information may now have their logs truncated. This helps us manage load on our platform and is a restriction we may lift in future.

For now, you’ll always get the first few lines of your logs — which might contain important information about inputs, seed values, etc. — and the most recent logs.

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Zeitlimit für das Teilen von Vorhersagen

Vorhersagen aus der Web-Playground können nur noch bis zu 60 Tage nach ihrer Erstellung geteilt werden, bereits geteilte bleiben jedoch weiterhin zugänglich.

To improve API performance and speed up database queries, we are cleaning out old predictions.

From now on, you’ll only be able to share predictions made in the web playground for up to 60 days after they’re created.

If you’ve already shared a prediction, don’t worry - it will still be accessible to others even after 60 days.

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Trainingsergebnisse im Web ansehen

Die Trainingsdetailseite im Web hat jetzt einen JSON-Tab, der alle Metadaten und Ausgaben des Trainings einschließlich des Links zu den generierten Gewichten anzeigt.

The training detail page on the website now has a JSON tab, so you can see all the metadata and outputs from your trainings, including the URL of your generated weights file.

To view all your trainings, go to [replicate.com/trainings](https://replicate.com/trainings)

[![JSON tab](https://tjzk.replicate.delivery/markdownx/3c5fea8d-8b1d-4e6f-a519-d214af131fe0.png)](https://replicate.com/trainings)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

API zum Durchsuchen öffentlicher Modelle

Die API bietet jetzt einen Endpunkt zum Durchsuchen öffentlicher Modelle mittels einer QUERY-Anfrage mit dem Suchbegriff als Textinhalt.

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

To use it, make a QUERY HTTP request using your search query as the plaintext body of the request:Copy

```plaintext
curl -s -X QUERY \
  -H "Authorization: Bearer $REPLICATE_API_TOKEN" \
  -H "Content-Type: text/plain" \
  -d "face" \
  https://api.replicate.com/v1/models
```

The response will be a paginated JSON object containing an array of model objects:Copy

```json
{
  "next": null,
  "previous": null,
  "results": [
    {
      "url": "https://replicate.com/acme/hello-world",
      "owner": "acme",
      "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": {...}
    }
  ]
}
```

For more details, check out the [HTTP API reference docs](https://replicate.com/docs/reference/http#models.search). …

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Streaming standardmäßig verfügbar

Streaming wird nun automatisch für alle Modelle aktiviert, die es unterstützen, und das Feld „stream“ ist veraltet, bleibt aber weiterhin gültig.

We’ve made streaming a tiny bit easier and simplified our API.

When we first launched streaming for language models you had to pass `"stream": true` with your request to enable it. Adoption of streaming has been great, with about one third of requests to compatible models requesting a stream, and our streaming infrastructure is more robust now than it was when we first launched it. This means we’re now in the position to just stream everything by default if the model supports it.

So you no longer need to pass `"stream": true` with your prediction request to get back a stream URL – if the model supports streaming, you’ll always get one back.

We’ve deprecated the field, but it’s still valid to pass it. If you do continue to pass `"stream": true` then if the model supports streaming it has no effect. And if the model doesn’t support streaming we’ll keep the current behaviour of responding with a 422.

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Geheime Eingaben für Modelle

Mit Cog 0.9.7 können Eingaben als „Secret“ markiert werden, und Replicate redigiert die Werte nach der Übermittlung an das Modell, um sie zu schützen.

We’ve added a way to securely pass sensitive values to models.

In [Cog v0.9.7](https://github.com/replicate/cog/releases/tag/v0.9.7) and later, you can annotate an input with the [`Secret` type](https://github.com/replicate/cog/blob/main/docs/python.md#secret) to signify that an input holds sensitive information, like a password or API token.Copy

```python
from cog import BasePredictor, Secret


class Predictor(BasePredictor):
    def predict(self, api_token: Secret) -> None:
        # Prints '**********'
        print(api_token)        

        # Use get_secret_value method to see the secret's content.
        print(api_token.get_secret_value())
```

Replicate treats secret inputs differently throughout its system. When you create a prediction on Replicate, any value passed to a `Secret` input is redacted after being sent to the model.

**Before**

!["A secret has its value redacted after being sent to the model."](https://tjzk.replicate.delivery/markdownx/9e522a60-41be-4419-be82-a3ffd9506f3d.png)

**After**

!["This value was redacted after being sent to the model."](https://tjzk.replicate.delivery/markdownx/e135670b-946e-4820-a2cc-8371d28b321a.png)

**Caution**: Passing secret values to untrusted models can result in unintended disclosure, exfiltration, or misuse of sensitive data.

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

API-Tokens deaktivieren

API-Tokens können jetzt im Web deaktiviert werden, um Missbrauch zu verhindern, wenn sie versehentlich geleakt wurden.

You can now disable API tokens from the web. This is useful if you accidentally leaked your token and want to prevent unauthorized use of the token.

To view and manage your tokens, go to [replicate.com/account/api-tokens](https://replicate.com/account/api-tokens).

![](https://tjzk.replicate.delivery/markdownx/10cd0385-fcbf-4520-9e5f-4659050ca831.png)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

RSS- und Atom-Feeds verfügbar

Es gibt jetzt RSS- und Atom-Feeds für Blog, Changelog und Plattformstatus, die abonniert und in Slack eingebunden werden können.

We now publish RSS and Atom feeds for our blog, changelog, and platform status site. You can subscribe to these feeds to get updates about new product features, as well as platform incidents - https://replicatestatus.com/feed - https://replicate.com/changelog/rss - https://replicate.com/changelog/atom - https://replicate.com/blog/rss - https://replicate.com/blog/atom

If you’re using Slack, you can [use Slack’s RSS app](https://slack.com/help/articles/218688467-Add-RSS-feeds-to-Slack) to subscribe to these feeds and get notifications right in your team’s Slack workspace.

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Modelle, Versionen und Deployments löschen

Modelle, Versionen und Deployments können jetzt über das Web oder die API gelöscht werden, wobei Einschränkungen wie Besitz und Nutzung gelten.

You can now delete models, versions, and deployments using the web or the HTTP API.

**Deleting models**

You can delete a model directly from the web on the model settings page. You can also delete a model programmatically using the [`models.delete`](https://replicate.com/docs/reference/http#models.delete) HTTP API.

There are some restrictions on which models you can delete:
- You can only delete models you own.
- You can only delete private models.
- You can only delete models that have no versions associated with them. You’ll need to delete any versions first before deleting the model.

**Deleting model versions**

You can delete a model version directly from the web using the nav in the header of the model versions page. You can also delete a model version programmatically using the [`versions.delete`](https://replicate.com/docs/reference/http#models.versions.delete) HTTP API.

The following restrictions apply to deleting versions:
- You can only delete versions from models you own.
- You can only delete versions from private models.
- You cannot delete a version if someone other than you has run predictions with it.
- You cannot delete a version if it is being used as the base model for a fine tune/training.
- You cannot delete a version if it has an associated deployment.
- You cannot delete a version if another model version is overridden to use it.

**Deleting deployments** …

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Webhook-Verifizierung: Doku und Client-Bibliotheken erweitert

Die Dokumentation und die Client-Bibliotheken für Webhooks wurden erweitert, sodass eingehende Webhooks sicher verifiziert werden können, ohne eigene Validierungslogik schreiben zu müssen.

A webhook is an HTTP POST from an unknown source. Attackers can impersonate services by sending a fake webhook to an endpoint. Replicate protects you from this attack by signing every webhook and its metadata with a unique key for each user or organization. You can use this signature to verify that incoming webhooks are coming from Replicate before you process them.

Today we improved our documentation and client library support for webhooks, so you can securely verify webhooks in your existing application without having to write your own validation logic:
- [Guide to verifying webhooks](https://replicate.com/docs/webhooks#client-library-support)
- [JavaScript client docs](https://github.com/replicate/replicate-javascript#verifying-webhooks)
- [Go client docs](https://github.com/replicate/replicate-go#webhooks)
- [Next.js sample app with docs](https://github.com/replicate/getting-started-nextjs#webhooks)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Deployments in der Suche aufgenommen

Die Suche auf der Replicate-Website durchsucht jetzt auch Deployments, sodass Sie direkt zu einem Ihrer Deployments springen können.

The Replicate website has a search bar at the top of every screen that lets you fuzzy search for models, collections, and pages.

We’ve now added [deployments](https://replicate.com/docs/deployments) to the search results, so you can quickly jump right to one of your deployments with fewer clicks.

Press `cmd-k` (or `ctrl-k` on Windows) to open the search and search for your deployment by name:

![](https://tjzk.replicate.delivery/markdownx/39e208ab-c447-4ca5-9e86-ba6cee7a67a4.png)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Webhook-Aktivität in der Benutzeroberfläche anzeigen

Auf dem Detailbildschirm von Predictions und im neuen Webhooks-Tab im Dashboard wird nun die Webhook-Aktivität inklusive Fehlern aus den letzten sechs Stunden angezeigt.

We’ve added two new UI features to make your experience with webhooks better on Replicate.

On the prediction detail screen, if your prediction was made with webhooks, you’ll see an indicator that opens a sliding panel with the details and status of those webhooks.

Your browser does not support the video tag.

There’s also a new [“Webhooks” tab on the Dashboard](https://replicate.com/webhooks) where you’ll find a chart detailing 6 hours of recent webhook activity, as well as any failures that have occurred in that time period. [![](https://tjzk.replicate.delivery/markdownx/8732e81b-a0ed-41f3-8920-5157681f7c64.png)](https://replicate.com/webhooks)

Originalquelle(öffnet in neuem Tab)Problem melden

Replicate

Verbesserte Validierung von API-Predictions

Bei der Erstellung von Predictions über die API werden fehlerhafte oder falsch geschriebene Felder im JSON-Request-Body jetzt erkannt und gemeldet.

If you typo a field in the JSON request body when creating a prediction with the API, we will now tell you about it rather than silently accepting it.

Here’s an example showing the response you’ll get if you misspell `input` as `inptu`:Copy

```shell
$ curl -s -X POST \
  -H "Authorization: Bearer $REPLICATE_API_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "version": "5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa", 
    "inptu": {"text": "Alice"}
  }' \
  https://api.replicate.com/v1/predictions | jq .invalid_fields
```

Copy

```json
[
  {
    "type": "required",
    "field": "",
    "description": "input is required"
  },
  {
    "type": "additional_property_not_allowed",
    "field": "",
    "description": "Additional property inptu is not allowed"
  }
]
```

Note that this validation only applies to [top-level properties in the payload](https://replicate.com/docs/reference/http#predictions.create--request-body) like `input`, `version`, `stream`, `webhook`, `webhook_events_filter`, etc.

Originalquelle(öffnet in neuem Tab)Problem melden