MCPcopy Create free account
hub / github.com/pytorch/executorch / get_text_config

Method get_text_config

backends/mlx/test/test_ops.py:2385–2387  ·  view source on GitHub ↗

Return self for HF StaticCache compatibility.

(self, **kwargs)

Source from the content-addressed store, hash-verified

2383 self.max_position_embeddings = max_position_embeddings
2384
2385 def get_text_config(self, **kwargs):
2386 """Return self for HF StaticCache compatibility."""
2387 return self
2388
2389
2390class HFStaticCacheModel(nn.Module):

Callers 2

resolve_hf_text_configFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected