mirror of https://github.com/InternLM/InternLM
merge upstream develop
parent
a8dea6313f
commit
1b7935dd98
|
@ -6,6 +6,7 @@ from typing import Any, Optional, Tuple
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.distributed as dist
|
import torch.distributed as dist
|
||||||
|
import torch.nn.functional as F
|
||||||
from einops import rearrange
|
from einops import rearrange
|
||||||
from flash_attn.modules.mha import (
|
from flash_attn.modules.mha import (
|
||||||
CrossAttention,
|
CrossAttention,
|
||||||
|
|
Loading…
Reference in New Issue