Run this model with HF Jobs

Run my-ai-stack/Stack-2-9-finetuned on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/my-ai-stack/Stack-2-9-finetuned. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/my-ai-stack/Stack-2-9-finetuned on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/my-ai-stack/Stack-2-9-finetuned. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/my-ai-stack/Stack-2-9-finetuned. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Commit History

  1. Add git lfs tracking for large jsonl files

    walidsobhie-code
    29a776a
  2. Fix Gradio/huggingface_hub version compatibility⁠

    walidsobhie-code +1: Claude Opus 4.6
    97fa10c
  3. Add ddgs for free web search

    walidsobhie-code
    729d832
  4. Add real web search with ddgs (DuckDuckGo HTML scraper, free, no API key)

    walidsobhie-code
    0fbc572
  5. Fix search with DuckDuckGo API (proper JSON parsing)

    walidsobhie-code
    35799ef
  6. Use local model instead of HF for faster loading

    walidsobhie-code
    3c29912
  7. Add web search command (search:query) with DuckDuckGo API

    walidsobhie-code
    40b1cc9
  8. Load model from HF: my-ai-stack/stack-2-9-finetuned

    walidsobhie-code
    217c8d8
  9. Improve chat.py with system prompt and User/Assistant format

    walidsobhie-code
    2aa22b3
  10. Add interactive chat script with improved generation settings

    walidsobhie-code
    7a8afa9

  1. feat: add code completion generator and model registry tools⁠

    walidsobhie-code
    4ca507e
  2. feat: add 5000 more tool calling examples (total: 6500)⁠

    walidsobhie-code
    2e091e7
  3. feat: add training recipes for T4 QLoRA, A100, local training⁠

    walidsobhie-code
    e4ff487
  4. feat: add evaluation datasets (HumanEval 50, MBPP 100, Tool scenarios 50)

    walidsobhie-code
    20a06fb
  5. feat: add production infrastructure - CI/CD, Docker, code quality, and monitoring⁠

    walidsobhie-code
    b5998ff
  6. feat: add inference API, quickstart guide, roadmap, and combined tool data⁠

    walidsobhie-code
    b03a8a0
  7. feat: add evaluation scripts, tool calling data generator, and 7B training configs⁠

    walidsobhie-code
    183b3b6
  8. fix: remove Google Drive mount (Colab-only) - use Kaggle output + GitHub push instead⁠

    walidsobhie-code
    a8f2981
  9. feat: add Google Drive auto-save to prevent losing model outputs⁠

    walidsobhie-code
    65c52b2
  10. feat: add model testing and evaluation scripts⁠

    walidsobhie-code
    f4b31b2
  11. fix: add numpy import at top to ensure it's loaded (fixes Numpy not available error)

    walidsobhie-code
    7adbecc
  12. fix: disable AMP (fp16=False, bf16=False) to bypass P100 GradScaler bug

    walidsobhie-code
    27a755a
  13. fix: load model in FP32 to avoid AMP gradient scaling conflict⁠

    walidsobhie-code
    b098bb5
  14. fix: proper variable ordering for bf16/fp16 detection — define before use

    walidsobhie-code
    e78785b
  15. fixes for Kaggle run⁠

    walidsobhie-code
    bb61f7c
  16. fix: define use_fp16 before model load; remove duplicate⁠

    walidsobhie-code
    5ac765e
  17. fix: load model in fp16 to match fp16 training precision (bf16 not supported on P100/T4)

    walidsobhie-code
    445d8a0
  18. fix: force FP16 and disable BF16 for T4 compatibility⁠

    walidsobhie-code
    896f8a1
  19. fix: use torch.cuda.is_bf16_supported() instead of compute capability check

    walidsobhie-code
    c2a0307
  20. fix: load model in bfloat16, train in fp16 on T4 (bf16 not supported on Turing)

    walidsobhie-code
    15ef1c5
  21. fix: set expandable_segments=False to fix PyTorch #124807 gradient checkpointing bug

    walidsobhie-code
    98e3329
  22. fix: use device_map={'': cuda} to force all model layers on GPU (fixes gradient flow issue)

    walidsobhie-code
    c2013aa
  23. fix: use device_map=auto for 1.5B model, add model.train() after LoRA

    walidsobhie-code
    cd96c3d
  24. chore: use Qwen2.5-Coder-1.5B for Kaggle T4 (7B doesn't fit in 16GB)

    walidsobhie-code
    fffdf6d
  25. fix: use device_map=None for single GPU (T4) to avoid meta tensor errors with float16

    walidsobhie-code
    7d0f28b
  26. fix: fallback to fp16 when bf16 requested but GPU doesn't support it (T4/Pascal)

    walidsobhie-code
    bdf34ba
  27. fix: resolve CUDA OOM on T4 by using bfloat16, device_map=auto, and enabling gradient checkpointing⁠

    walidsobhie-code
    c82e627
  28. fix: revert device_map=auto (AMP gradient conflict on T4, use explicit cuda device instead)

    walidsobhie-code
    fdeb8f3
  29. fix: disable gradient checkpointing (conflicts with LoRA on T4, breaks backward pass)

    walidsobhie-code
    07b92ca
  30. fix: switch bf16->fp16 (Kaggle T4/P100 is Pascal, no Ampere bf16 support)

    walidsobhie-code
    6e6bd1d
  31. fix: add numpy to pip install deps for device_map=auto CPU offload

    walidsobhie-code
    fc98957
  32. fix OOM: use device_map=auto with CPU offload + float16

    walidsobhie-code
    54daa38
  33. fix: reduce memory for T4 GPU⁠

    walidsobhie-code
    6badaa9
  34. fix: add missing datasets import in train_simple_nobnb.py

    walidsobhie-code
    f2c605a
  35. revert bitsandbytes: CUDA 13 runtime missing on Kaggle⁠

    walidsobhie-code
    732bef9
  36. fix OOM: enable 4-bit NF4 quantization + bf16 training⁠

    walidsobhie-code
    4ce3e59
  37. fix: force PyTorch 2.2.0+cu118 for P100 (sm_60) GPU compatibility

    walidsobhie-code
    9150ac1
  38. fix: use explicit cuda device map and use_reentrant=False for gradient checkpointing

    walidsobhie-code
    3bfb6ea
  39. fix OOM: batch_size 2->1, gradient_accumulation 4->8 for T4 GPU

    walidsobhie-code
    cd564ae

  1. fix: use lora_dropout instead of dropout for PEFT compatibility

    walidsobhie-code
    976675d