Run this model with HF Jobs
Run ryefoxlime/TADBot 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/ryefoxlime/TADBot. 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/ryefoxlime/TADBot 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/ryefoxlime/TADBot. 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/ryefoxlime/TADBot. 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.
Instructions to use ryefoxlime/TADBot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ryefoxlime/TADBot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ryefoxlime/TADBot")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ryefoxlime/TADBot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ryefoxlime/TADBot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ryefoxlime/TADBot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ryefoxlime/TADBot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ryefoxlime/TADBot
- SGLang
How to use ryefoxlime/TADBot with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ryefoxlime/TADBot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ryefoxlime/TADBot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ryefoxlime/TADBot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ryefoxlime/TADBot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ryefoxlime/TADBot with Docker Model Runner:
docker model run hf.co/ryefoxlime/TADBot
Commit ·
9de35b0
1
Parent(s): dca99f4
added basic files and updated env
Browse filesFiles changed (10)
- .python-version+1-1
- FER/models/__init__.pyAdded
- FER/prediction.py+6-2
- Gemma2_2B/__init__.pyAdded
- Gemma2_2B/finetune.pyAdded
- Gemma2_2B/inference.pyAdded
- pyproject.toml+119-14
- requirements.inAdded+18
- requirements.txtAdded+402
- uv.lock
13.1113.11.10
1234589 unmodified lines9596979899100101from main import *from deepface import DeepFace# Checking for all types of devices availableif torch.backends.mps.is_available():89 unmodified linesprint(f"-->Image Path {image_path} [!] The predicted labels are {y_pred} and the label is {labels}")return12345678989 unmodified lines99100101102103104105from models.PosterV2_7cls import pyramid_trans_expr2import torchimport osfrom deepface import DeepFacefrom torchvision import transformsimport numpy as np# Checking for all types of devices availableif torch.backends.mps.is_available():89 unmodified linesprint(f"-->Image Path {image_path} [!] The predicted labels are {y_pred} and the label is {labels}")return
4 unmodified lines56789101112131415161718192021222324252627284 unmodified linesreadme = "README.md"requires-python = ">=3.11"dependencies = ["huggingface-hub>=0.26.2","torch==2.5.1+cu124","torchaudio==2.5.1+cu124","torchvision==0.20.1+cu124",][tool.uv.sources]torch = {index = "pytorch"}torchaudio = {index = "pytorch"}torchvision = {index = "pytorch"}cudf-cu12 = {index = "pandas_cuda"}[[tool.uv.index]]name = "pytorch"url = "https://download.pytorch.org/whl/cu124"explicit = true[[tool.uv.index]]name = "pandas_cuda"url = "https://pypi.nvidia.com"explicit = true4 unmodified lines567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321334 unmodified linesreadme = "README.md"requires-python = ">=3.11"dependencies = ["absl-py==2.1.0","accelerate==1.1.1","aiohappyeyeballs==2.4.3","aiohttp==3.10.10","aiosignal==1.3.1","astunparse==1.6.3","attrs==24.2.0","beautifulsoup4==4.12.3","bitsandbytes==0.44.1","blinker==1.9.0","certifi==2024.8.30","charset-normalizer==3.4.0","click==8.1.7","colorama==0.4.6","colorama==0.4.6 ; platform_system == 'Windows'","contourpy==1.3.0","cycler==0.12.1","datasets==3.1.0","deepface==0.0.93","dill==0.3.8","filelock==3.16.1","fire==0.7.0","flask-cors==5.0.0","flask==3.0.3","flatbuffers==24.3.25","fonttools==4.54.1","frozenlist==1.5.0","fsspec==2024.9.0","gast==0.6.0","gdown==5.2.0","google-pasta==0.2.0","grpcio==1.67.1","gunicorn==23.0.0","h5py==3.12.1","huggingface-hub==0.26.2","idna==3.10","itsdangerous==2.2.0","jinja2==3.1.4","joblib==1.4.2","jsonlines==4.0.0","keras==3.6.0","kiwisolver==1.4.7","libclang==18.1.1","lz4==4.3.3","markdown-it-py==3.0.0","markdown==3.7","markupsafe==3.0.1","matplotlib==3.9.2","mdurl==0.1.2","ml-dtypes==0.4.1","mpmath==1.3.0","mtcnn==1.0.0","multidict==6.1.0","multiprocess==0.70.16","namex==0.0.8","networkx==3.4.2","numpy==2.0.2","nvidia-cublas-cu12==12.4.5.8 ; platform_machine == 'x86_64' and platform_system == 'Linux'","nvidia-cuda-cupti-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'","nvidia-cuda-nvrtc-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'","nvidia-cuda-runtime-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'","nvidia-cudnn-cu12==9.1.0.70 ; platform_machine == 'x86_64' and platform_system == 'Linux'","nvidia-cufft-cu12==11.2.1.3 ; platform_machine == 'x86_64' and platform_system == 'Linux'","nvidia-curand-cu12==10.3.5.147 ; platform_machine == 'x86_64' and platform_system == 'Linux'","nvidia-cusolver-cu12==11.6.1.9 ; platform_machine == 'x86_64' and platform_system == 'Linux'","nvidia-cusparse-cu12==12.3.1.170 ; platform_machine == 'x86_64' and platform_system == 'Linux'","nvidia-nccl-cu12==2.21.5 ; platform_machine == 'x86_64' and platform_system == 'Linux'","nvidia-nvjitlink-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'","nvidia-nvtx-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'","opencv-python==4.10.0.84","opt-einsum==3.4.0","optree==0.13.0","packaging==24.2","pandas==2.2.3","peft==0.13.2","pillow==11.0.0","propcache==0.2.0","protobuf==5.28.3","psutil==6.1.0","pyarrow==18.0.0","pygments==2.18.0","pyparsing==3.2.0","pysocks==1.7.1","python-dateutil==2.9.0.post0","pytz==2024.2","pyyaml==6.0.2","regex==2024.11.6","requests==2.32.3","retina-face==0.0.17","rich==13.9.4","safetensors==0.4.5","scikit-learn==1.5.2","scipy==1.14.1","setuptools==75.4.0","six==1.16.0","soupsieve==2.6","sympy==1.13.1","tensorboard-data-server==0.7.2","tensorboard==2.18.0","tensorflow-intel==2.18.0","tensorflow-io-gcs-filesystem==0.31.0","tensorflow-io-gcs-filesystem==0.31.0 ; python_full_version < '3.12'","tensorflow==2.18.0","termcolor==2.5.0","threadpoolctl==3.5.0","tokenizers==0.20.3","torch==2.5.1+cu124","torchaudio==2.5.1+cu124","torchsampler==0.1.2","torchvision==0.20.1+cu124","tqdm==4.67.0","transformers==4.46.2","triton==3.1.0 ; python_full_version < '3.13' and platform_machine == 'x86_64' and platform_system == 'Linux'","trl==0.12.0","typing-extensions==4.12.2","tzdata==2024.2","urllib3==2.2.3","werkzeug==3.1.3","wheel==0.45.0","wrapt==1.16.0","xxhash==3.5.0","yarl==1.17.1",][[tool.uv.index]]url = "https://download.pytorch.org/whl/cu124"
123456789101112131415161718-i https://pypi.org/simple--extra-index-url https://download.pytorch.org/whl/cu124huggingface-hub==0.26.2scikit-learn==1.5.2torch==2.5.1+cu124torchaudio==2.5.1+cu124torchsampler==0.1.2torchvision==0.20.1+cu124matplotlib==3.9.2deepface==0.0.93transformers==4.46.2datasets==3.1.0peft==0.13.2trl==0.12.0bitsandbytes==0.44.1accelerate==1.1.1tensorboard==2.18.0jsonlines==4.0.0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402# This file was autogenerated by uv via the following command:# uv pip compile requirements.in -o requirements.txt --python-version 3.11.10 --index-strategy unsafe-best-match --universalabsl-py==2.1.0 # via # keras # tensorboard # tensorflowaccelerate==1.1.1 # via # -r requirements.in # peft # trlaiohappyeyeballs==2.4.3 # via aiohttpaiohttp==3.10.10 # via # datasets # fsspecaiosignal==1.3.1 # via aiohttpastunparse==1.6.3 # via tensorflowattrs==24.2.0 # via # aiohttp # jsonlinesbeautifulsoup4==4.12.3 # via gdownbitsandbytes==0.44.1 # via -r requirements.inblinker==1.9.0 # via flaskcertifi==2024.8.30 # via requestscharset-normalizer==3.4.0 # via requestsclick==8.1.7 # via flaskcolorama==0.4.6 ; platform_system == 'Windows' # via # click # tqdmcontourpy==1.3.0 # via matplotlibcycler==0.12.1 # via matplotlibdatasets==3.1.0 # via # -r requirements.in # trldeepface==0.0.93 # via -r requirements.indill==0.3.8 # via # datasets # multiprocessfilelock==3.16.1 # via # datasets # gdown # huggingface-hub # torch # transformers # tritonfire==0.7.0 # via deepfaceflask==3.0.3 # via # deepface # flask-corsflask-cors==5.0.0 # via deepfaceflatbuffers==24.3.25 # via tensorflowfonttools==4.54.1 # via matplotlibfrozenlist==1.5.0 # via # aiohttp # aiosignalfsspec==2024.9.0 # via # datasets # huggingface-hub # torchgast==0.6.0 # via tensorflowgdown==5.2.0 # via # deepface # retina-facegoogle-pasta==0.2.0 # via tensorflowgrpcio==1.67.1 # via # tensorboard # tensorflowgunicorn==23.0.0 # via deepfaceh5py==3.12.1 # via # keras # tensorflowhuggingface-hub==0.26.2 # via # -r requirements.in # accelerate # datasets # peft # tokenizers # transformersidna==3.10 # via # requests # yarlitsdangerous==2.2.0 # via flaskjinja2==3.1.4 # via # flask # torchjoblib==1.4.2 # via # mtcnn # scikit-learnjsonlines==4.0.0 # via -r requirements.inkeras==3.6.0 # via # deepface # tensorflowkiwisolver==1.4.7 # via matplotliblibclang==18.1.1 # via tensorflowlz4==4.3.3 # via mtcnnmarkdown==3.7 # via tensorboardmarkdown-it-py==3.0.0 # via richmarkupsafe==3.0.1 # via # jinja2 # werkzeugmatplotlib==3.9.2 # via -r requirements.inmdurl==0.1.2 # via markdown-it-pyml-dtypes==0.4.1 # via # keras # tensorflowmpmath==1.3.0 # via sympymtcnn==1.0.0 # via deepfacemultidict==6.1.0 # via # aiohttp # yarlmultiprocess==0.70.16 # via datasetsnamex==0.0.8 # via kerasnetworkx==3.4.2 # via torchnumpy==2.0.2 # via # accelerate # bitsandbytes # contourpy # datasets # deepface # h5py # keras # matplotlib # ml-dtypes # opencv-python # pandas # peft # retina-face # scikit-learn # scipy # tensorboard # tensorflow # torchvision # transformersnvidia-cublas-cu12==12.4.5.8 ; platform_machine == 'x86_64' and platform_system == 'Linux' # via # nvidia-cudnn-cu12 # nvidia-cusolver-cu12 # torchnvidia-cuda-cupti-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux' # via torchnvidia-cuda-nvrtc-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux' # via torchnvidia-cuda-runtime-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux' # via torchnvidia-cudnn-cu12==9.1.0.70 ; platform_machine == 'x86_64' and platform_system == 'Linux' # via torchnvidia-cufft-cu12==11.2.1.3 ; platform_machine == 'x86_64' and platform_system == 'Linux' # via torchnvidia-curand-cu12==10.3.5.147 ; platform_machine == 'x86_64' and platform_system == 'Linux' # via torchnvidia-cusolver-cu12==11.6.1.9 ; platform_machine == 'x86_64' and platform_system == 'Linux' # via torchnvidia-cusparse-cu12==12.3.1.170 ; platform_machine == 'x86_64' and platform_system == 'Linux' # via # nvidia-cusolver-cu12 # torchnvidia-nccl-cu12==2.21.5 ; platform_machine == 'x86_64' and platform_system == 'Linux' # via torchnvidia-nvjitlink-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux' # via # nvidia-cufft-cu12 # nvidia-cusolver-cu12 # nvidia-cusparse-cu12 # torchnvidia-nvtx-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux' # via torchopencv-python==4.10.0.84 # via # deepface # retina-faceopt-einsum==3.4.0 # via tensorflowoptree==0.13.0 # via keraspackaging==24.2 # via # accelerate # datasets # gunicorn # huggingface-hub # keras # matplotlib # peft # tensorboard # tensorflow # transformerspandas==2.2.3 # via # datasets # deepface # torchsamplerpeft==0.13.2 # via -r requirements.inpillow==11.0.0 # via # deepface # matplotlib # retina-face # torchvisionpropcache==0.2.0 # via yarlprotobuf==5.28.3 # via # tensorboard # tensorflowpsutil==6.1.0 # via # accelerate # peftpyarrow==18.0.0 # via datasetspygments==2.18.0 # via richpyparsing==3.2.0 # via matplotlibpysocks==1.7.1 # via requestspython-dateutil==2.9.0.post0 # via # matplotlib # pandaspytz==2024.2 # via pandaspyyaml==6.0.2 # via # accelerate # datasets # huggingface-hub # peft # transformersregex==2024.11.6 # via transformersrequests==2.32.3 # via # datasets # deepface # gdown # huggingface-hub # tensorflow # transformersretina-face==0.0.17 # via deepfacerich==13.9.4 # via # keras # trlsafetensors==0.4.5 # via # accelerate # peft # transformersscikit-learn==1.5.2 # via -r requirements.inscipy==1.14.1 # via scikit-learnsetuptools==75.4.0 # via # tensorboard # tensorflow # torchsix==1.16.0 # via # astunparse # google-pasta # python-dateutil # tensorboard # tensorflowsoupsieve==2.6 # via beautifulsoup4sympy==1.13.1 # via torchtensorboard==2.18.0 # via # -r requirements.in # tensorflowtensorboard-data-server==0.7.2 # via tensorboardtensorflow==2.18.0 # via # deepface # retina-facetensorflow-io-gcs-filesystem==0.31.0 ; python_full_version < '3.12' # via tensorflowtermcolor==2.5.0 # via # fire # tensorflowthreadpoolctl==3.5.0 # via scikit-learntokenizers==0.20.3 # via transformerstorch==2.5.1+cu124 # via # -r requirements.in # accelerate # bitsandbytes # peft # torchaudio # torchsampler # torchvisiontorchaudio==2.5.1+cu124 # via -r requirements.intorchsampler==0.1.2 # via -r requirements.intorchvision==0.20.1+cu124 # via # -r requirements.in # torchsamplertqdm==4.67.0 # via # datasets # deepface # gdown # huggingface-hub # peft # transformerstransformers==4.46.2 # via # -r requirements.in # peft # trltriton==3.1.0 ; python_full_version < '3.13' and platform_machine == 'x86_64' and platform_system == 'Linux' # via torchtrl==0.12.0 # via -r requirements.intyping-extensions==4.12.2 # via # huggingface-hub # optree # tensorflow # torchtzdata==2024.2 # via pandasurllib3==2.2.3 # via requestswerkzeug==3.1.3 # via # flask # tensorboardwheel==0.45.0 # via astunparsewrapt==1.16.0 # via tensorflowxxhash==3.5.0 # via datasetsyarl==1.17.1 # via aiohttp.python-version+1-1
FER/models/__init__.pyAdded
FER/prediction.py+6-2
Gemma2_2B/__init__.pyAdded
Gemma2_2B/finetune.pyAdded
Gemma2_2B/inference.pyAdded
pyproject.toml+119-14
requirements.inAdded+18
requirements.txtAdded+402
uv.lock