Skip to content

HuggingFace & Cloudflare WebRTC partnership announcement #2801

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

Conversation

freddyaboulton
Copy link
Contributor

@freddyaboulton freddyaboulton commented Apr 8, 2025

This has to go out tomorrow at 10 am (us-eastern), 4:00 pm (paris time)

Preparing the Article

You're not quite done yet, though. Please make sure to follow this process (as documented here):

  • Add an entry to _blog.yml.
  • Add a thumbnail. There are no requirements here, but there is a template if it's helpful.
  • Check you use a short title and blog path.
  • Upload any additional assets (such as images) to the Documentation Images repo. This is to reduce bloat in the GitHub base repo when cloning and pulling. Try to have small images to avoid a slow or expensive user experience.
  • Add metadata (such as authors) to your md file. You can also specify guest or org for the authors.
  • Ensure the publication date is correct.
  • Preview the content. A quick way is to paste the markdown content in https://huggingface.co/new-blog. Do not click publish, this is just a way to do an early check.

Here is an example of a complete PR: #2382

Getting a Review

Please make sure to get a review from someone on your team or a co-author.
Once this is done and once all the steps above are completed, you should be able to merge.
There is no need for additional reviews if you and your co-authors are happy and meet all of the above.

Feel free to add @pcuenca as a reviewer if you want a final check. Keep in mind he'll be biased toward light reviews
(e.g., check for proper metadata) rather than content reviews unless explicitly asked.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice


We're excited to announce a new partnership between Cloudflare and Hugging Face that gives FastRTC developers instant access to enterprise-grade WebRTC infrastructure with a Hugging Face token.

As a preview of what you can build with FastRTC and Cloudflare, check out this voice chat app built with Meta's new Llama 4 model!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice to build w/ llama 4


## Getting Started

The integration will be available in the FastRTC version 0.0.20. To get started:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will the release be out by the time the blog post is released? if so I'd drop the future tense and instead say:

Suggested change
The integration will be available in the FastRTC version 0.0.20. To get started:
The integration is available with `fastrtc>=0.0.20`. To get started:

## Getting Started

The integration will be available in the FastRTC version 0.0.20. To get started:
- Ensure you have a Hugging Face token (get one [here](https://huggingface.co/settings/tokens))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Ensure you have a Hugging Face token (get one [here](https://huggingface.co/settings/tokens))
- Ensure you have a Hugging Face token with read access (get one [here](https://huggingface.co/settings/tokens))

Comment on lines 43 to 44
- Configure your Stream to use the Cloudflare TURN network
- Launch your script with python
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Configure your Stream to use the Cloudflare TURN network
- Launch your script with python
- Configure your Stream to use the Cloudflare TURN network as shown below:

stream.ui.launch()
```

See this [Collection](https://huggingface.co/collections/fastrtc/cloudflare-partnership-67f437e0dfd19818d62ccb81) on Hugging Face as well as the [FastRTC Cookbook](https://fastrtc.org/cookbook/) for more examples.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
See this [Collection](https://huggingface.co/collections/fastrtc/cloudflare-partnership-67f437e0dfd19818d62ccb81) on Hugging Face as well as the [FastRTC Cookbook](https://fastrtc.org/cookbook/) for more examples.
Now simply launch your script with Python: `python [name of your file]`
See this [Collection](https://huggingface.co/collections/fastrtc/cloudflare-partnership-67f437e0dfd19818d62ccb81) on Hugging Face as well as the [FastRTC Cookbook](https://fastrtc.org/cookbook/) for more examples.

Copy link
Member

@abidlabs abidlabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm good stuff @freddyaboulton!


As a preview of what you can build with FastRTC and Cloudflare, check out this voice chat app built with Meta's new Llama 4 model!

<video src="https://huggingface.co/datasets/freddyaboulton/bucket/resolve/main/FastRTCCloudFlareShort.mp4" controls /></video>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw the video did not load for me, but my wifi connection is pretty terrible atm. but maybe double check the link

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this. My first draft had a video loading from an HF dataset and that was working but for some reason this particular video is not loading. Switched to loading from a github url and it's working now.

@freddyaboulton
Copy link
Contributor Author

Thank you for the feedback @abidlabs 🙏

@freddyaboulton freddyaboulton merged commit dff757a into huggingface:main Apr 9, 2025
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants