Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

remove device

roryclear2159239ac98a
diff --git a/utils/model.py b/utils/model.py
index 9c0d939..bf94987 100644
--- a/utils/model.py
+++ b/utils/model.py
@@ -187,7 +187,7 @@ class TransformerBlock(FFNBlock):
if not hasattr(self, "cache_kv"):
# TODO: how is the dtype of this determined?
self.cache_kv = Tensor.empty(2, x.shape[0], self.config.n_kv_heads, self.config.max_context, self.config.head_dim, device=x.device)
- self.freqs_cis = precompute_freqs_cis(self.config.rope_dim, self.config.max_context, self.config.rope_theta, device=x.device)
+ self.freqs_cis = precompute_freqs_cis(self.config.rope_dim, self.config.max_context, self.config.rope_theta)
class MLATransformerBlock(FFNBlock):
def __init__(self, config:TransformerConfig):