MCPcopy Create free account

hub / github.com/MaxHastings/Kolo / functions

Functions34 in github.com/MaxHastings/Kolo

↓ 6 callersMethodget_item_by_name
(item_list: List[Dict[str, Any]], name: str)
scripts/SyntheticDataGeneration/Utils.py:26
↓ 6 callersMethodwrite_text
(self, file_path: Path, text: str)
scripts/SyntheticDataGeneration/FileManager.py:32
↓ 4 callersMethodread_text
(self, file_path: Path)
scripts/SyntheticDataGeneration/FileManager.py:29
↓ 2 callersMethodcall_api
(self, prompt: str)
scripts/SyntheticDataGeneration/ApiClient.py:30
↓ 2 callersFunctioncreate_modelfile
(file_path, from_line, model_type)
scripts/merge_lora.py:44
↓ 2 callersMethodgenerate_file_content
(self, file_list: List[str], for_questions: bool = True)
scripts/SyntheticDataGeneration/FileGroupProcessor.py:102
↓ 2 callersMethodget_hash
(text: str)
scripts/SyntheticDataGeneration/Utils.py:33
↓ 2 callersMethodparse_questions
(question_text: str)
scripts/SyntheticDataGeneration/TextParser.py:16
↓ 1 callersMethodbuild_files_content
(self, file_list: List[str], file_header_template: str)
scripts/SyntheticDataGeneration/FileManager.py:36
↓ 1 callersMethodcollect_instructions_and_seeds
(self)
scripts/SyntheticDataGeneration/FileGroupProcessor.py:77
↓ 1 callersFunctionconvert_jsonl
(input_file, chat_output, alpaca_output)
scripts/convert_jsonl_to_json.py:4
↓ 1 callersMethodexpand_file_groups
(self)
scripts/SyntheticDataGeneration/QAGenerator.py:57
↓ 1 callersMethodfind_file
(self, relative_path: str)
scripts/SyntheticDataGeneration/FileManager.py:19
↓ 1 callersFunctionformatting_prompts_func
Formats the prompts from the dataset by applying the chat template and tokenizing the resulting texts. Args: examples (dict): A
scripts/train.py:63
↓ 1 callersMethodgenerate_answer
( self, q_seed_idx: int, instr_idx: int, question_number: int, question_text: str, answer_inst
scripts/SyntheticDataGeneration/FileGroupProcessor.py:132
↓ 1 callersMethodgenerate_question_task
( self, q_seed_idx: int, instr_idx: int, seed_text: str, instruction: str, combined_content: str, file
scripts/SyntheticDataGeneration/FileGroupProcessor.py:105
↓ 1 callersFunctionget_args
()
scripts/merge_lora.py:23
↓ 1 callersFunctioninfer_model_type
(model_path)
scripts/merge_lora.py:7
↓ 1 callersFunctionmain
()
scripts/merge_lora.py:72
↓ 1 callersFunctionmain
()
scripts/train.py:83
↓ 1 callersFunctionmain
()
scripts/generate_qa_data.py:17
↓ 1 callersFunctionmain
()
scripts/parse_qa_data.py:83
↓ 1 callersFunctionpair_questions_and_answers
Looks for all question files in the QUESTIONS_DIR and then for each question, pairs it with the corresponding answer files from ANSWERS_DIR.
scripts/parse_qa_data.py:15
↓ 1 callersFunctionparse_arguments
()
scripts/train.py:36
↓ 1 callersFunctionrename_adapter_config
(lora_model_path)
scripts/merge_lora.py:31
↓ 1 callersMethodresolve_templates
(self)
scripts/SyntheticDataGeneration/FileGroupProcessor.py:57
↓ 1 callersMethodrun
(self)
scripts/SyntheticDataGeneration/QAGenerator.py:66
Method__init__
(self, config: Dict[str, Any], output_base_path: Path, thread_count: int)
scripts/SyntheticDataGeneration/QAGenerator.py:19
Method__init__
( self, group_name: str, group_config: Dict[str, Any], config: Dict[str, Any],
scripts/SyntheticDataGeneration/FileGroupProcessor.py:20
Method__init__
(self, base_dir: Path)
scripts/SyntheticDataGeneration/FileManager.py:16
Method__init__
(self, provider: str, model: str, global_ollama_url: Optional[str] = None, openai_client: Optional[OpenAI] = N
scripts/SyntheticDataGeneration/ApiClient.py:24
Methodhandle_answer
(task)
scripts/SyntheticDataGeneration/FileGroupProcessor.py:229
Methodhandle_question
(task)
scripts/SyntheticDataGeneration/FileGroupProcessor.py:200
Methodprocess
(self)
scripts/SyntheticDataGeneration/FileGroupProcessor.py:180