MCPcopy Create free account
hub / github.com/RightNow-AI/TIDE / test_get_embedding

Method test_get_embedding

tests/test_adapters.py:55–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 assert out.shape == (2, 256)
54
55 def test_get_embedding(self):
56 model = TinyModel(vocab_size=256)
57 adapter = get_adapter(model)
58 emb = adapter.get_embedding(model)
59 ids = torch.tensor([[1, 2, 3]])
60 out = emb(ids)
61 assert out.shape == (1, 3, 64)
62
63 def test_get_router_input_dim(self):
64 model = TinyModel()

Callers

nothing calls this directly

Calls 3

TinyModelClass · 0.90
get_adapterFunction · 0.90
get_embeddingMethod · 0.45

Tested by

no test coverage detected