Run this model with HF Jobs

Run mrrobot2610/IDP-Machine-learning 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 to fine-tune https://huggingface.co/mrrobot2610/IDP-Machine-learning. 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/mrrobot2610/IDP-Machine-learning 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.
IDP-Machine-learning / run_api_server.sh
mrrobot2610's picture
Initial commit: IDP (Intelligent Document Processing) System
1a7ee60
Raw History Blame
464 Bytes
#!/bin/bash
# Wrapper script to run API server with environment variables set
# This prevents TensorFlow/PaddlePaddle mutex warnings
export KMP_DUPLICATE_LIB_OK=TRUE
export OMP_NUM_THREADS=1
export OPENBLAS_NUM_THREADS=1
export MKL_NUM_THREADS=1
export VECLIB_MAXIMUM_THREADS=1
export NUMEXPR_NUM_THREADS=1
export TF_CPP_MIN_LOG_LEVEL=2
# Redirect stderr to filter out mutex warnings
python api_server.py 2>&1 | grep -v "mutex.cc" | grep -v "RAW: Lock blocking"