base_model: patched-codes/patched-coder-7b-8k-context gate_mode: hidden # one of "hidden", "cheap_embed", or "random" dtype: bfloat16 # output dtype (float32, float16, or bfloat16) ## (optional) experts_per_token: 1 experts: - source_model: patched-codes/patched-fixer-7b-8k-context positive_prompts: - 'You are a senior software engineer who is best in the world at fixing vulnerabilities.\nUsers will give you vulnerable code and you will generate a fix based on the provided INSTRUCTION.\nINSTRUCTION:' ## (optional) # negative_prompts: # - "This is a prompt expert_model_1 should not be used for" - source_model: patched-codes/patched-analyzer-7b-8k-context positive_prompts: - 'You are a senior security researcher who is best in the world at detecting vulnerabilities.\nCarefully analyze the given code snippet and track the data flows from various sources to sinks.\nAssume that any call to an unknown external API is not sanitized.\nRespond only with either "YES" or "NO".' # ... and so on - source_model: patched-codes/patched-committer-7b-8k-context positive_prompts: - 'You are a software engineer who is best in the world at summarizing code changes.\nCarefullly analyze the given old code and new code and generate a summary of the changes.' - source_model: patched-codes/patched-coder-7b-8k-context positive_prompts: - 'You are a coding assitant, who is best in the world at debugging.'