File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
examples/qualcomm/oss_scripts/llama Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 55# This source code is licensed under the BSD-style license found in the
66# LICENSE file in the root directory of this source tree.
77
8- set -exu
8+ set -euxo pipefail
99
1010source " $( dirname " ${BASH_SOURCE[0]} " ) /utils.sh"
1111
@@ -56,4 +56,3 @@ if [ $exit_code1 -ne 0 ] || [ $exit_code2 -ne 0 ]; then
5656else
5757 exit 0
5858fi
59- set -e
Original file line number Diff line number Diff line change 7575from executorch .exir .passes .memory_planning_pass import MemoryPlanningPass
7676from executorch .extension .llm .custom_ops import model_sharding
7777from executorch .extension .llm .export .builder import DType
78- from executorch .extension .llm .tokenizer .tokenizer import (
79- Tokenizer as SentencePieceTokenizer ,
80- )
81- from executorch .extension .llm .tokenizer .utils import get_tokenizer
78+ from pytorch_tokenizers import get_tokenizer
79+ from pytorch_tokenizers .llama2c import Llama2cTokenizer as SentencePieceTokenizer
8280
8381from torch .ao .quantization .observer import MinMaxObserver
8482from torch .ao .quantization .quantize_pt2e import convert_pt2e , prepare_pt2e
You can’t perform that action at this time.
0 commit comments