Skip to content

Commit

Permalink
Remove TIP Format and Replaced with Subheader in README (#5517)
Browse files Browse the repository at this point in the history
Summary:
Removed [!TIP] format and replaced with a subheader

Pull Request resolved: #5517

Reviewed By: kirklandsign

Differential Revision: D63145938

Pulled By: cmodi-meta

fbshipit-source-id: 5503901957b8aeffe23cdc756bd4c73a007dd35e
  • Loading branch information
cmodi-meta authored and facebook-github-bot committed Sep 22, 2024
1 parent 55d6b0d commit b2517d6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions examples/demo-apps/android/LlamaDemo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ Optional Parameters:
* System Prompt: Without any formatting, you can enter in a system prompt. For example, "you are a travel assistant" or "give me a response in a few sentences".
* User Prompt: More for the advanced user, if you would like to manually input a prompt then you can do so by modifying the `{{user prompt}}`. You can also modify the special tokens as well. Once changed then go back to the main Chat activity to send.

> [!TIP]
> Helpful ExecuTorch API in app
#### ExecuTorch App API

```java
// Upon returning to the Main Chat Activity
Expand Down Expand Up @@ -95,8 +94,8 @@ You can provide it more follow-up questions as well.
<img src="https://raw.githubusercontent.com/pytorch/executorch/refs/heads/main/docs/source/_static/img/chat.png" width=300>
</p>

> [!TIP]
> Helpful ExecuTorch API in app
#### ExecuTorch App API

```java
mModule.generate(prompt,sequence_length, MainActivity.this);
```
Expand All @@ -119,8 +118,7 @@ To show completion of the follow-up question, here is the complete detailed resp
<img src="https://raw.githubusercontent.com/pytorch/executorch/refs/heads/main/docs/source/_static/img/chat_response.png" width=300>
</p>

> [!TIP]
> Helpful ExecuTorch API in app
#### ExecuTorch App API

Ensure you have the following functions in your callback class that you provided in the `mModule.generate()`. For this example, it is `MainActivity.this`.
```java
Expand Down

0 comments on commit b2517d6

Please sign in to comment.