From 0b7124c0a6e90d8bd8ae7a03051520d52ba4936e Mon Sep 17 00:00:00 2001 From: Jack Zhang <32371937+jackzhxng@users.noreply.github.com> Date: Thu, 1 May 2025 12:12:23 -0700 Subject: [PATCH] Add prompt constants file --- .../LLaMA/LLaMA/Application/Constants.swift | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/Constants.swift diff --git a/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/Constants.swift b/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/Constants.swift new file mode 100644 index 00000000000..49bcffa7fca --- /dev/null +++ b/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/Constants.swift @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ + +import Foundation + +public enum Constants { + public static let qwen3PromptTemplate = """ +<|im_start|>system +You are a helpful assistant. +<|im_end|> +<|im_start|>user +%@<|im_end|> +<|im_start|>assistant + + + + + + +""" + + public static let llama3PromptTemplate = "<|begin_of_text|><|start_header_id|>user<|end_header_id|>%@<|eot_id|><|start_header_id|>assistant<|end_header_id|>" +}