distilabel: version: 1.5.3 pipeline: name: instruction-generation-pipeline description: null steps: - step: name: load_chunks resources: replicas: 1 cpus: null gpus: null memory: null resources: null input_mappings: {} output_mappings: {} use_cache: true batch_size: 50 repo_id: AdvikMehta/qc-all-chunks split: train config: null revision: null streaming: false num_examples: null storage_options: null runtime_parameters_info: - name: resources runtime_parameters_info: - name: replicas optional: true description: The number of replicas for the step. - name: cpus optional: true description: The number of CPUs assigned to each step replica. - name: gpus optional: true description: The number of GPUs assigned to each step replica. - name: memory optional: true description: The memory in bytes required for each step replica. - name: resources optional: true description: A dictionary containing names of custom resources and the number of those resources required for each step replica. - name: batch_size optional: true description: The number of rows that will contain the batches generated by the step. - name: repo_id optional: false description: The Hugging Face Hub repository ID of the dataset to load. - name: split optional: true description: The split of the dataset to load. Defaults to 'train'. - name: config optional: true description: The configuration of the dataset to load. This is optional and only needed if the dataset has multiple configurations. - name: revision optional: true description: The revision of the dataset to load. Defaults to the latest revision. - name: streaming optional: true description: Whether to load the dataset in streaming mode or not. Defaults to False. - name: num_examples optional: true description: The number of examples to load from the dataset. By default will load all examples. type_info: module: distilabel.steps.generators.huggingface name: LoadDataFromHub name: load_chunks - step: name: apply_templates resources: replicas: 1 cpus: null gpus: null memory: null resources: null input_mappings: {} output_mappings: {} use_cache: true input_batch_size: 50 runtime_parameters_info: - name: resources runtime_parameters_info: - name: replicas optional: true description: The number of replicas for the step. - name: cpus optional: true description: The number of CPUs assigned to each step replica. - name: gpus optional: true description: The number of GPUs assigned to each step replica. - name: memory optional: true description: The memory in bytes required for each step replica. - name: resources optional: true description: A dictionary containing names of custom resources and the number of those resources required for each step replica. - name: input_batch_size optional: true description: The number of rows that will contain the batches processed by the step. type_info: module: src.steps.apply_templates name: ApplyTemplates name: apply_templates - step: name: text-generation resources: replicas: 1 cpus: null gpus: null memory: null resources: null input_mappings: {} output_mappings: {} use_cache: true input_batch_size: 50 llm: use_magpie_template: false magpie_pre_query_template: null generation_kwargs: {} use_offline_batch_generation: false offline_batch_generation_block_until_done: null jobs_ids: null model: llama3.2 host: http://localhost:11434 timeout: 120 follow_redirects: true structured_output: null tokenizer_id: null type_info: module: distilabel.models.llms.ollama name: OllamaLLM group_generations: false add_raw_output: true add_raw_input: true num_generations: 1 use_default_structured_output: false system_prompt: null use_system_prompt: true template: '{{ instruction }}' columns: - instruction runtime_parameters_info: - name: resources runtime_parameters_info: - name: replicas optional: true description: The number of replicas for the step. - name: cpus optional: true description: The number of CPUs assigned to each step replica. - name: gpus optional: true description: The number of GPUs assigned to each step replica. - name: memory optional: true description: The memory in bytes required for each step replica. - name: resources optional: true description: A dictionary containing names of custom resources and the number of those resources required for each step replica. - name: input_batch_size optional: true description: The number of rows that will contain the batches processed by the step. - name: llm runtime_parameters_info: - name: generation_kwargs description: The kwargs to be propagated to either `generate` or `agenerate` methods within each `LLM`. keys: - name: format optional: true description: the format to use for the generation. Defaults to `""`. - name: options optional: true description: the options to use for the generation. Defaults to `None`. - name: keep_alive optional: true description: whether to keep the connection alive. Defaults to `None`. - name: use_offline_batch_generation optional: true description: Whether to use the `offline_batch_generate` method to generate the responses. - name: offline_batch_generation_block_until_done optional: true description: If provided, then polling will be done until the `ofline_batch_generate` method is able to retrieve the results. The value indicate the time to wait between each polling. - name: host optional: true description: The host of the Ollama API. - name: timeout optional: true description: The timeout for the Ollama API. - name: structured_output optional: true description: The structured output format to use across all the generations. - name: tokenizer_id optional: true description: The Hugging Face Hub repo id or a path to a directory containing the tokenizer config files. If not provided, the one associated to the `model` will be used. - name: add_raw_output optional: true description: Whether to include the raw output of the LLM in the key `raw_output_` of the `distilabel_metadata` dictionary output column - name: add_raw_input optional: true description: Whether to include the raw input of the LLM in the key `raw_input_` of the `distilabel_metadata` dictionary column - name: num_generations optional: true description: The number of generations to be produced per input. type_info: module: distilabel.steps.tasks.text_generation name: TextGeneration name: text-generation - step: name: keep_only_relevant resources: replicas: 1 cpus: null gpus: null memory: null resources: null input_mappings: {} output_mappings: {} use_cache: true input_batch_size: 50 columns: - page_content - system_prompt - instruction - generation - model_name - metadata runtime_parameters_info: - name: resources runtime_parameters_info: - name: replicas optional: true description: The number of replicas for the step. - name: cpus optional: true description: The number of CPUs assigned to each step replica. - name: gpus optional: true description: The number of GPUs assigned to each step replica. - name: memory optional: true description: The memory in bytes required for each step replica. - name: resources optional: true description: A dictionary containing names of custom resources and the number of those resources required for each step replica. - name: input_batch_size optional: true description: The number of rows that will contain the batches processed by the step. type_info: module: distilabel.steps.columns.keep name: KeepColumns name: keep_only_relevant connections: - from: load_chunks to: - apply_templates - from: apply_templates to: - text-generation - from: text-generation to: - keep_only_relevant - from: keep_only_relevant to: [] routing_batch_functions: [] type_info: module: distilabel.pipeline.local name: Pipeline requirements: []