Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Open-source AI cookbook

License

NotificationsYou must be signed in to change notification settings

huggingface/cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains community-driven practical examples of building AI applications and solving various tasks with AIusing open-source tools and models.

Contributing to the cookbook

Everyone is welcome to contribute, and we value everybody's contribution! There are several ways you can contribute totheOpen-Source AI Cookbook:

  • Submit an idea for a desired example/guide viaGitHub Issues.
  • Contribute a new notebook with a practical example.
  • Improve existing examples by fixing issues/typos.

Before contributing, check currentlyopen issues andpull requests to avoid working on something that someone else isalready working on.

After you contribute, feel free to ask for a request to join tothis organization to claim the badge. 🏅

What makes a good Cookbook notebook?

We believe that the Cookbook will be the most beneficial for everyone in the community if the Jupyter notebooks have thefollowing qualities:

  • Practical: Your notebook should provide an illustration of an end-to-end project or a specific aspect of AI development. Aim for real-world applications, but try to avoid overcomplicating. Clearly explain the objectives, challenges and steps involved.
  • Build with open-source tools and models: Utilize open source libraries, datasets, and pre-trained models available under permissive licenses. Include links to all resources used within the notebook.
  • Clearly written: Ensure your writing is clear, concise, and free from grammatical errors. Maintain a friendly and approachable tone throughout the notebook. Explain the steps you take to solve a problem, challenges, alternative approaches.
  • Executes without errors: Test your notebook to avoid runtime errors.
  • Adds to existing "recipes": Before submitting, review existing notebooks to confirm that the subject hasn't been covered yet. We welcome diverse use cases, modalities, techniques, and approaches!

Creating a pull request

To contribute a new example/guide, open a pull request, and tag @merveenoyan and @stevhliu.

Here are some tips:

  • Make sure that your notebook's file name is in lowercase.
  • Don't forget to add your notebook to the_toctree.yml and toindex.md.
  • Right after the notebook's first header, add yourself as an author like this:_Authored by: [Aymeric Roucher](https://huggingface.co/m-ric)_. You can link to your Hugging Face profile, or to your GitHub profile.
  • Remove non-informative code cell outputs (e.g. frompip install). Make sure the notebook doesn't contain any empty code cells.
  • If using any images in the markdown, upload them to thehuggingface/cookbook-images dataset. Then use the link to the image in your markdown, e.g.:![RAG diagram](https://huggingface.co/datasets/huggingface/cookbook-images/resolve/main/rag-diagram.png)

Once your pull request is merged, the notebook will show up in theOpen-Source AI Cookbook.

Translating the Cookbook into your language

We'd love to have the Cookbook to be available in many more languages! Please follow the steps below if you'd like tohelp translate the notebooks into your language 🙏.

If some of the notebooks have already been translated into your language, add new translated notebooksundernotebooks/your_language. Don't forget to add the new translated notebook tonotebooks/your_language/_toctree.yml,and tonotebooks/your_language/index.md.

If the notebooks have not yet been translated to your language, create a directory undernotebooks with yourLANG-ID(e.g. seeen for English,zh-CN for Chinese). TheLANG-ID should be ISO 639-1 (two lower case letters) languagecode -- seehere for reference. Alternatively,{two lowercase letters}-{two uppercase letters} format is also supported, e.g.zh-CN.

Create thenotebooks/LANG-ID/_toctree.yml, andnotebooks/LANG-ID/index.md, and add the translated notebook.

Finally, add your language code (the exact sameLANG-ID) to thebuild_documentation.yml andbuild_pr_documentation.ymlfiles in the.github/workflows folder.

About

Open-source AI cookbook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp