From f3106d3543aa2d93664cb37058ddc39a00fa7ae6 Mon Sep 17 00:00:00 2001 From: tyrin Date: Wed, 8 Apr 2026 18:29:30 -0700 Subject: [PATCH] (no commit message) --- README.md | 8 +++++++- config.json | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ program.json | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 config.json create mode 100644 program.json diff --git a/README.md b/README.md index 00813dc..b49efad 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ -# toxicity +--- +is_arbiter: true +probe_model: modaic/gpt-oss-120b-probe +size: large +supports_reasoning: true +--- +# toxicity \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..28420b7 --- /dev/null +++ b/config.json @@ -0,0 +1,52 @@ +{ + "model": null, + "signature": { + "$defs": { + "Reasoning": { + "type": "dspy.Reasoning" + } + }, + "description": "Classify the toxicity of a user message request", + "properties": { + "message": { + "__dspy_field_type": "input", + "desc": "${message}", + "prefix": "Message:", + "title": "Message", + "type": "string" + }, + "reasoning": { + "$ref": "#/$defs/Reasoning", + "__dspy_field_type": "output", + "desc": "Your reasoning for your answer. Inlude any uncertainties about your answer or ambiguity in the task.", + "prefix": "Reasoning:" + }, + "category": { + "__dspy_field_type": "output", + "desc": "${category}", + "enum": [ + "self-harm", + "deception", + "harassment", + "sexual", + "violence", + "unethical", + "privacy", + "hate", + "illegal", + "harmful" + ], + "prefix": "Category:", + "title": "Category", + "type": "string" + } + }, + "required": [ + "message", + "reasoning", + "category" + ], + "title": "StringSignature", + "type": "object" + } +} \ No newline at end of file diff --git a/program.json b/program.json new file mode 100644 index 0000000..826e659 --- /dev/null +++ b/program.json @@ -0,0 +1,40 @@ +{ + "traces": [], + "train": [], + "demos": [], + "signature": { + "instructions": "Classify the toxicity of a user message request", + "fields": [ + { + "prefix": "Message:", + "description": "${message}" + }, + { + "prefix": "Reasoning:", + "description": "Your reasoning for your answer. Inlude any uncertainties about your answer or ambiguity in the task." + }, + { + "prefix": "Category:", + "description": "${category}" + } + ] + }, + "lm": { + "model": "openrouter/openai/gpt-oss-120b", + "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