Instructions to use prometheus04/qwen3-4b-thinking-microagent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use prometheus04/qwen3-4b-thinking-microagent with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
| """Stream-inspect the Nemotron-Terminal-Corpus to understand its schema. | |
| Pulls a few rows from each config without downloading the full 8.2GB. | |
| """ | |
| from __future__ import annotations | |
| import os | |
| os.environ.setdefault("HF_HUB_DISABLE_SYMLINKS_WARNING", "1") | |
| from datasets import load_dataset | |
| REPO = "nvidia/Nemotron-Terminal-Corpus" | |
| CONFIGS = ["dataset_adapters", "skill_based_easy", "skill_based_medium", "skill_based_mixed"] | |
| def preview_value(v, max_chars=500): | |
| if isinstance(v, list): | |
| s = f"list(len={len(v)})" | |
| if v: | |
| s += f" first_type={type(v[0]).__name__}" | |
| s += f"\n first_item={str(v[0])[:max_chars]}" | |
| if len(v) > 1: | |
| s += f"\n last_item={str(v[-1])[:max_chars]}" | |
| return s | |
| if isinstance(v, dict): | |
| return f"dict keys={list(v.keys())} preview={str(v)[:max_chars]}" | |
| if isinstance(v, str): | |
| return f"str(len={len(v)}): {v[:max_chars]}" | |
| return f"{type(v).__name__}={v}" | |
| def inspect_config(config_name, n=1): | |
| print(f"\n========== CONFIG: {config_name} ==========") | |
| ds = load_dataset(REPO, config_name, streaming=True) | |
| split = list(ds.keys())[0] | |
| print(f"Split: {split}") | |
| stream = ds[split] | |
| print(f"\nFeatures schema:\n{stream.features}\n") | |
| for i, row in enumerate(stream): | |
| if i >= n: | |
| break | |
| print(f"--- Row {i} keys: {list(row.keys())}") | |
| for k, v in row.items(): | |
| print(f"\n [{k}]\n {preview_value(v)}") | |
| print() | |
| def main(): | |
| for cfg in CONFIGS: | |
| try: | |
| inspect_config(cfg, n=1) | |
| except Exception as e: | |
| print(f"\nERROR inspecting {cfg}: {e}") | |
| if __name__ == "__main__": | |
| main() | |