File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 29
29
python -m pip install -e .[all]
30
30
31
31
- name : Build wheels
32
- uses : pypa/cibuildwheel@v2.19.2
32
+ uses : pypa/cibuildwheel@v2.20.0
33
33
env :
34
34
# disable repair
35
35
CIBW_REPAIR_WHEEL_COMMAND : " "
56
56
platforms : linux/arm64
57
57
58
58
- name : Build wheels
59
- uses : pypa/cibuildwheel@v2.19.2
59
+ uses : pypa/cibuildwheel@v2.20.0
60
60
env :
61
61
CIBW_SKIP : " *musllinux* pp*"
62
62
CIBW_REPAIR_WHEEL_COMMAND : " "
Original file line number Diff line number Diff line change 30
30
python -m pip install -e .[all]
31
31
32
32
- name : Build wheels
33
- uses : pypa/cibuildwheel@v2.19.2
33
+ uses : pypa/cibuildwheel@v2.20.0
34
34
env :
35
35
# disable repair
36
36
CIBW_REPAIR_WHEEL_COMMAND : " "
Original file line number Diff line number Diff line change @@ -777,11 +777,12 @@ def generate(
777
777
else :
778
778
break
779
779
if longest_prefix > 0 :
780
- if self .verbose :
781
- print ("Llama.generate: prefix-match hit" , file = sys .stderr )
782
780
reset = False
783
781
tokens = tokens [longest_prefix :]
784
782
self .n_tokens = longest_prefix
783
+ if self .verbose :
784
+ print (f"Llama.generate: { longest_prefix } prefix-match hit, "
785
+ f"remaining { len (tokens )} prompt tokens to eval" , file = sys .stderr )
785
786
786
787
# Reset the model state
787
788
if reset :
@@ -2159,7 +2160,7 @@ def from_pretrained(
2159
2160
2160
2161
files = [
2161
2162
file ["name" ] if isinstance (file , dict ) else file
2162
- for file in hffs .ls (repo_id )
2163
+ for file in hffs .ls (repo_id , recursive = True ) )
2163
2164
]
2164
2165
2165
2166
# split each file into repo_id, subfolder, filename
You can’t perform that action at this time.
0 commit comments