Skip to content

Commit ee545b3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b672dad commit ee545b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

litgpt/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from copy import deepcopy
44
from dataclasses import dataclass, field
55
from pathlib import Path
6-
from typing import Any, Literal, Optional, Type, Union, List
6+
from typing import Any, List, Literal, Optional, Type, Union
77

88
import torch
99
import yaml

litgpt/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def __init__(self, config: Config, block_idx: int) -> None:
324324
self.proj = nn.Linear(config.head_size * config.n_head, config.n_embd, bias=config.bias)
325325
# disabled by default
326326
self.kv_cache: Optional[KVCache] = None
327-
self.apply_sliding_window_attention = False
327+
self.apply_sliding_window_attention = False
328328
if config.sliding_window_size is not None and config.sliding_window_indices is not None:
329329
self.apply_sliding_window_attention = config.sliding_window_indices[block_idx]
330330

0 commit comments

Comments
 (0)