Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 22fa5a6

Browse filesBrowse files
committed
Revert "Deprecate generate method"
This reverts commit 6cf5876.
1 parent 4f5f99e commit 22fa5a6
Copy full SHA for 22fa5a6

File tree

Expand file treeCollapse file tree

1 file changed

+0
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-6
lines changed

‎llama_cpp/llama.py

Copy file name to clipboardExpand all lines: llama_cpp/llama.py
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import uuid
44
import time
55
import math
6-
import warnings
76
import multiprocessing
87
from typing import List, Optional, Union, Generator, Sequence, Iterator
98
from collections import deque
@@ -240,11 +239,6 @@ def generate(
240239
Yields:
241240
The generated tokens.
242241
"""
243-
warnings.warn(
244-
"Llama.generate is deprecated and will be removed in v0.2.0",
245-
DeprecationWarning,
246-
stacklevel=2,
247-
)
248242
assert self.ctx is not None
249243
self.reset()
250244
while True:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.