Skip to content

Commit

Permalink
Added demo section with embedded gradio streaming demo (huggingface#1976
Browse files Browse the repository at this point in the history
)
  • Loading branch information
yvrjsharma authored Apr 10, 2024
1 parent 3f4ef30 commit 219f182
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions codegemma.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ We’ve collaborated with Google to ensure the best integration into the Hugging
- [Evaluation Results](#evaluation-results)
- [Prompt format](#prompt-format)
- [Using CodeGemma](#using-codegemma)
- [Demo](#demo)
- [Using Transformers](#using-transformers)
- [Integration with Google Cloud](#integration-with-google-cloud)
- [Integration with Inference Endpoints](#integration-with-inference-endpoints)
Expand Down Expand Up @@ -112,6 +113,15 @@ As is the case with Gemma, the easiest way to reproduce this format is with the

## Using CodeGemma

### Demo

You can easily try the CodeGemma Model (7 billion parameters!) in **[this Space](https://huggingface.co/spaces/ysharma/CodeGemma)** or in the Chatbot embedded below:

<script type="module" src="https://gradio.s3-us-west-2.amazonaws.com/4.26.0/gradio.js"></script>
<gradio-app src="https://ysharma-codegemma.hf.space"></gradio-app>

Under the hood, this playground uses Transformers implementation. You can also duplicate the Space for your use – it's self-contained, so you can examine the source code and adapt it as you wish!

### Using Transformers

With Transformers [release 4.39](https://github.com/huggingface/transformers/releases/tag/v4.39.3), you can use CodeGemma and leverage all the tools within the Hugging Face ecosystem, such as:
Expand Down

0 comments on commit 219f182

Please sign in to comment.