mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-06 02:32:40 +00:00
temp commit
This commit is contained in:
parent
346a6c658d
commit
82d575811c
1 changed files with 4 additions and 0 deletions
|
@ -448,6 +448,10 @@ class LoraFinetuningSingleDevice:
|
|||
|
||||
async def _loss_step(self, batch: Dict[str, torch.Tensor]) -> torch.Tensor:
|
||||
# Shape [b, s], needed for the loss not the model
|
||||
# print("tokens", batch["tokens"])
|
||||
torch.save(batch["tokens"], "/home/markchen1015/new_alpaca_tokens.pth")
|
||||
# print("labels", batch["labels"])
|
||||
torch.save(batch["labels"], "/home/markchen1015/new_alpaca_labels.pth")
|
||||
labels = batch.pop("labels")
|
||||
# run model
|
||||
with self.activations_handling_ctx:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue