Skip to content

Commit

Permalink
Tune text_generation.py compilation (#1137)
Browse files Browse the repository at this point in the history
* Tune text_generation.py compilation

* Add os
  • Loading branch information
mgoin committed Jul 21, 2023
1 parent 27d9b82 commit fb9d131
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/deepsparse/transformers/pipelines/text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

import logging
import os
import warnings
from typing import List, Optional, Tuple, Type, Union

Expand Down Expand Up @@ -149,6 +150,8 @@ def __init__(
"The multi-token engine will not be "
"used for prompt processing."
)
if "WAND_OPT_FLAGS" not in os.environ:
os.environ["WAND_OPT_FLAGS"] = "default,~pyramids"

self.deterministic = deterministic
self.sampling_temperature = sampling_temperature
Expand Down

0 comments on commit fb9d131

Please sign in to comment.