Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/recipes/docs-and-references/recipe.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Audit documentation freshness - docstrings vs signatures, broken li
trigger: schedule
tool: claude-code
timeout_minutes: 20
max_turns: 30
max_turns: 50
permissions:
contents: write
---
Expand Down
31 changes: 19 additions & 12 deletions .github/workflows/agentic-ci-issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,25 @@ jobs:
echo "Claude CLI version: $(claude --version 2>&1 || true)"

if [ -n "$ANTHROPIC_BASE_URL" ] && [ -n "$ANTHROPIC_API_KEY" ]; then
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
--max-time 30 \
-X POST "${ANTHROPIC_BASE_URL}/v1/messages" \
-H "Content-Type: application/json" \
-H "x-api-key: ${ANTHROPIC_API_KEY}" \
-H "anthropic-version: 2023-06-01" \
-d "{\"model\":\"${AGENTIC_CI_MODEL}\",\"max_tokens\":5,\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}]}")
if [ "$HTTP_CODE" -lt 200 ] || [ "$HTTP_CODE" -ge 300 ]; then
echo "::error::API pre-flight failed with HTTP ${HTTP_CODE}"
exit 1
fi
echo "API pre-flight passed (HTTP ${HTTP_CODE})"
for ATTEMPT in 1 2 3; do
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
--max-time 30 \
-X POST "${ANTHROPIC_BASE_URL}/v1/messages" \
-H "Content-Type: application/json" \
-H "x-api-key: ${ANTHROPIC_API_KEY}" \
-H "anthropic-version: 2023-06-01" \
-d "{\"model\":\"${AGENTIC_CI_MODEL}\",\"max_tokens\":5,\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}]}")
if [ "$HTTP_CODE" -ge 200 ] && [ "$HTTP_CODE" -lt 300 ]; then
echo "API pre-flight passed (HTTP ${HTTP_CODE})"
break
fi
if [ "$ATTEMPT" = "3" ]; then
echo "::error::API pre-flight failed with HTTP ${HTTP_CODE}"
exit 1
fi
echo "API pre-flight failed with HTTP ${HTTP_CODE}; retrying (${ATTEMPT}/3)"
sleep $((ATTEMPT * 10))
done
fi

- name: Run issue triage recipe
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ jobs:
echo "No previous successful run found, proceeding without cache"
fi
- name: Convert and execute notebooks
run: make convert-execute-notebooks ${{ inputs.use_cache && 'USE_CACHE=1' || '' }}
run: |
if [ "$GITHUB_EVENT_NAME" = "schedule" ]; then
export DATA_DESIGNER_FLUX_2_PRO_CREATE_NUM_RECORDS=2
fi
make convert-execute-notebooks ${{ inputs.use_cache && 'USE_CACHE=1' || '' }}
- name: Upload notebooks as artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
Expand Down
72 changes: 38 additions & 34 deletions docs/colab_notebooks/4-providing-images-as-context.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "cd505b79",
"id": "351a3662",
"metadata": {
"nemo_colab_inject": true
},
Expand All @@ -12,15 +12,15 @@
},
{
"cell_type": "markdown",
"id": "ed119996",
"id": "17ecc2b8",
"metadata": {},
"source": [
"# 🎨 Data Designer Tutorial: Providing Images as Context for Vision-Based Data Generation"
]
},
{
"cell_type": "markdown",
"id": "d13a4cb5",
"id": "5ed7e603",
"metadata": {},
"source": [
"#### 📚 What you'll learn\n",
Expand All @@ -37,7 +37,7 @@
},
{
"cell_type": "markdown",
"id": "2924c2d1",
"id": "6f8c2761",
"metadata": {},
"source": [
"### 📦 Import Data Designer\n",
Expand All @@ -49,7 +49,7 @@
},
{
"cell_type": "markdown",
"id": "4c6e4f22",
"id": "bbfa06b7",
"metadata": {
"nemo_colab_inject": true
},
Expand All @@ -62,7 +62,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "98151070",
"id": "35fe9312",
"metadata": {
"nemo_colab_inject": true
},
Expand All @@ -75,7 +75,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5490b9a8",
"id": "4dd4c002",
"metadata": {
"nemo_colab_inject": true
},
Expand All @@ -95,7 +95,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "7a66e1ce",
"id": "b67c1cd2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -118,7 +118,7 @@
},
{
"cell_type": "markdown",
"id": "3e7a28c6",
"id": "de03245a",
"metadata": {},
"source": [
"### ⚙️ Initialize the Data Designer interface\n",
Expand All @@ -131,7 +131,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f31d6ac0",
"id": "4e46778f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -140,7 +140,7 @@
},
{
"cell_type": "markdown",
"id": "14b063e4",
"id": "badc7737",
"metadata": {},
"source": [
"### 🏗️ Initialize the Data Designer Config Builder\n",
Expand All @@ -155,16 +155,20 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d8fd37ae",
"id": "bc544dcb",
"metadata": {},
"outputs": [],
"source": [
"config_builder = dd.DataDesignerConfigBuilder()"
"config_builder = dd.DataDesignerConfigBuilder()\n",
"for model_config in config_builder.model_configs:\n",
" if model_config.alias == \"nvidia-vision\":\n",
" model_config.skip_health_check = True\n",
" break"
]
},
{
"cell_type": "markdown",
"id": "3a7e0787",
"id": "77842781",
"metadata": {},
"source": [
"### 🌱 Seed Dataset Creation\n",
Expand All @@ -181,7 +185,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b01b5496",
"id": "63f56ad9",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -196,7 +200,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "78b3b9ea",
"id": "3d59a3fc",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -241,7 +245,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "7b6b2908",
"id": "f8e794ea",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -259,7 +263,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e0ab09d5",
"id": "7a16b74e",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -269,7 +273,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "c9ce69ed",
"id": "26db3ac3",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -280,7 +284,7 @@
},
{
"cell_type": "markdown",
"id": "94528475",
"id": "fd0af217",
"metadata": {},
"source": [
"### 🧩 Media context and model capabilities\n",
Expand Down Expand Up @@ -317,7 +321,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "bd8148f4",
"id": "35153311",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -339,7 +343,7 @@
},
{
"cell_type": "markdown",
"id": "2150d704",
"id": "c0120b74",
"metadata": {},
"source": [
"### 🔁 Iteration is key – preview the dataset!\n",
Expand All @@ -356,7 +360,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "85cf2067",
"id": "25cc4054",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -366,7 +370,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "509f00ed",
"id": "22315ca6",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -377,7 +381,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "8b1a7d15",
"id": "ee176135",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -387,7 +391,7 @@
},
{
"cell_type": "markdown",
"id": "9bf4843c",
"id": "cc653ea1",
"metadata": {},
"source": [
"### 📊 Analyze the generated data\n",
Expand All @@ -400,7 +404,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d80d106d",
"id": "5af110d9",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -410,7 +414,7 @@
},
{
"cell_type": "markdown",
"id": "ed22e721",
"id": "a462f684",
"metadata": {},
"source": [
"### 🔎 Visual Inspection\n",
Expand All @@ -421,7 +425,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f41c068a",
"id": "55067aa0",
"metadata": {
"lines_to_next_cell": 2
},
Expand All @@ -445,7 +449,7 @@
},
{
"cell_type": "markdown",
"id": "f096be05",
"id": "8446cd74",
"metadata": {},
"source": [
"### 🆙 Scale up!\n",
Expand All @@ -458,7 +462,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "c2efd0f8",
"id": "051275d5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -468,7 +472,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1f7b5f60",
"id": "822d566f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -481,7 +485,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "dbb9ea18",
"id": "fc2124b6",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -493,7 +497,7 @@
},
{
"cell_type": "markdown",
"id": "f7a1f3ba",
"id": "28120764",
"metadata": {},
"source": [
"## ⏭️ Next Steps\n",
Expand Down
Loading
Loading