From 4cf68c96c806aa26ca8fc4ab862b375368d19074 Mon Sep 17 00:00:00 2001 From: Tyrin Todd Date: Thu, 23 Apr 2026 23:08:25 -0700 Subject: [PATCH] server-inference push civil_comments --- README.md | 5 ++++- config.json | 40 ++++++++++++++++++++++++++++++++++++++++ program.json | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 config.json create mode 100644 program.json diff --git a/README.md b/README.md index 006d741..dec341b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ -# civil_comments +--- +{} +--- +# civil_comments \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..869ad01 --- /dev/null +++ b/config.json @@ -0,0 +1,40 @@ +{ + "model": null, + "signature": { + "description": "Classify a comment as toxic or non-toxic in the Civil Comments setting. As you reason, note any uncertainties, ambiguities, and gaps \u2014 both in how the instructions apply to the task at hand and in whether you have the knowledge needed to solve it. Be honest in your reasoning when you are unsure about your answer.", + "properties": { + "comment": { + "__dspy_field_type": "input", + "desc": "Comment text to classify for toxicity.", + "prefix": "Comment:", + "title": "Comment", + "type": "string" + }, + "reasoning": { + "__dspy_field_type": "output", + "desc": "Step-by-step reasoning, including uncertainty, ambiguity, or uncertainty in your thought process when relevant.", + "prefix": "Reasoning:", + "title": "Reasoning", + "type": "string" + }, + "toxicity_label": { + "__dspy_field_type": "output", + "desc": "Final toxicity label: 'toxic' or 'non_toxic'.", + "enum": [ + "toxic", + "non_toxic" + ], + "prefix": "Toxicity Label:", + "title": "Toxicity Label", + "type": "string" + } + }, + "required": [ + "comment", + "reasoning", + "toxicity_label" + ], + "title": "CivilCommentsToxicityJudgeSig", + "type": "object" + } +} \ No newline at end of file diff --git a/program.json b/program.json new file mode 100644 index 0000000..1d7e8f2 --- /dev/null +++ b/program.json @@ -0,0 +1,40 @@ +{ + "traces": [], + "train": [], + "demos": [], + "signature": { + "instructions": "Classify a comment as toxic or non-toxic in the Civil Comments setting. As you reason, note any uncertainties, ambiguities, and gaps \u2014 both in how the instructions apply to the task at hand and in whether you have the knowledge needed to solve it. Be honest in your reasoning when you are unsure about your answer.", + "fields": [ + { + "prefix": "Comment:", + "description": "Comment text to classify for toxicity." + }, + { + "prefix": "Reasoning:", + "description": "Step-by-step reasoning, including uncertainty, ambiguity, or uncertainty in your thought process when relevant." + }, + { + "prefix": "Toxicity Label:", + "description": "Final toxicity label: 'toxic' or 'non_toxic'." + } + ] + }, + "lm": { + "model": "together_ai/Qwen/Qwen2.5-7B-Instruct-Turbo", + "model_type": "chat", + "cache": true, + "num_retries": 3, + "finetuning_model": null, + "launch_kwargs": {}, + "train_kwargs": {}, + "temperature": null, + "max_tokens": null + }, + "metadata": { + "dependency_versions": { + "python": "3.11", + "dspy": "3.1.3", + "cloudpickle": "3.1" + } + } +} \ No newline at end of file