From f4032354a2a8964e303fb3b45dd92a3ffb347366 Mon Sep 17 00:00:00 2001 From: Chirag Modi <98582575+cmodi-meta@users.noreply.github.com> Date: Sun, 22 Sep 2024 00:18:54 -0700 Subject: [PATCH] Remove TIP Format and Replaced with Subheader in README (#5517) Summary: Removed [!TIP] format and replaced with a subheader Pull Request resolved: https://github.com/pytorch/executorch/pull/5517 Reviewed By: kirklandsign Differential Revision: D63145938 Pulled By: cmodi-meta fbshipit-source-id: 5503901957b8aeffe23cdc756bd4c73a007dd35e (cherry picked from commit b2517d66b8ef170b0f20c5a2b12dc75ee498ed8e) --- examples/demo-apps/android/LlamaDemo/README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/demo-apps/android/LlamaDemo/README.md b/examples/demo-apps/android/LlamaDemo/README.md index 41b030cef06..c85f69a0798 100644 --- a/examples/demo-apps/android/LlamaDemo/README.md +++ b/examples/demo-apps/android/LlamaDemo/README.md @@ -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 @@ -95,8 +94,8 @@ You can provide it more follow-up questions as well.

-> [!TIP] -> Helpful ExecuTorch API in app +#### ExecuTorch App API + ```java mModule.generate(prompt,sequence_length, MainActivity.this); ``` @@ -119,8 +118,7 @@ To show completion of the follow-up question, here is the complete detailed resp

-> [!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