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 5
5
# This source code is licensed under the BSD-style license found in the
6
6
# LICENSE file in the root directory of this source tree.
7
7
8
- set -exu
8
+ set -euxo pipefail
9
9
10
10
source " $( dirname " ${BASH_SOURCE[0]} " ) /utils.sh"
11
11
@@ -56,4 +56,3 @@ if [ $exit_code1 -ne 0 ] || [ $exit_code2 -ne 0 ]; then
56
56
else
57
57
exit 0
58
58
fi
59
- set -e
Original file line number Diff line number Diff line change 75
75
from executorch .exir .passes .memory_planning_pass import MemoryPlanningPass
76
76
from executorch .extension .llm .custom_ops import model_sharding
77
77
from 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
82
80
83
81
from torch .ao .quantization .observer import MinMaxObserver
84
82
from torch .ao .quantization .quantize_pt2e import convert_pt2e , prepare_pt2e
You can’t perform that action at this time.
0 commit comments