MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / apply

Method apply

lit_gpt/datamodules/base_test.py:16–17  ·  view source on GitHub ↗
(self, prompt, **kwargs)

Source from the content-addressed store, hash-verified

14def test_sft_dataset(max_seq_length, ignore_index, mask_prompt, MOCK_TOKENIZER_FIXTURE):
15 class Style(PromptStyle):
16 def apply(self, prompt, **kwargs):
17 return f'In: {prompt} Out:'
18
19 i = ignore_index
20 data = [

Callers 2

__getitem__Method · 0.45
__getitem__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected