This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
# Placeholder functions to be implemented | |
def get_lora_adapter(username: str) -> callable: | |
"""Returns a callable function for the Lora adapter.""" | |
pass | |
def get_reft_adapter(username: str) -> callable: | |
"""Returns a callable function for the reft adapter.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Refernce: https://static.sched.com/hosted_files/pytorch2023/c0/Accelerating%20Generative%20AI%20PTC%20%282%29.pdf?page=41 | |
import torch | |
def speculative_decode( | |
model: LLaMA, | |
draft_model: LLaMA, | |
cur_token: torch.Tensor, | |
input_pos: int, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT _watcher/watch/core_dumps_slack | |
{ | |
"trigger" : { | |
"schedule" : {"interval" : "1m"} | |
}, | |
"input" : { | |
"search" : { | |
"request" : { | |
"body" : { | |
"query": { |