Instructions to use echoforest/market-psych-classifier-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use echoforest/market-psych-classifier-v1 with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Correct the model card (pooling is at the LABELS suffix's last token); add code/classifier from project commit 4ced7554f
3d7c238 verified Download code/classifier/runpod/sync.sh from echoforest/market-psych-classifier-v1: direct link, hf CLI and curl.
- Browser
- Download file 2.64 kB
-
https://huggingface.co/echoforest/market-psych-classifier-v1/resolve/main/code/classifier/runpod/sync.sh
- Command line
-
hf download hf://echoforest/market-psych-classifier-v1/code/classifier/runpod/sync.sh
-
curl -L -o sync.sh https://huggingface.co/echoforest/market-psych-classifier-v1/resolve/main/code/classifier/runpod/sync.sh
2.64 kB
| # Copy code, the export and the robustness inputs to the pod, or bring runs back (run on this machine). | |
| # sync.sh up HOST PORT classifier/ -> /workspace/code/classifier, export -> /workspace/data, inputs | |
| # sync.sh down HOST PORT /workspace/runs and the check files -> ~/twitter_models/classifier-v1/ | |
| # Uses the pod's direct "SSH over exposed TCP" address (the ssh.runpod.io proxy does not support rsync) and only | |
| # the RunPod key (SSH_KEY, default ~/.ssh/dom_runpod) with IdentitiesOnly, so other keys are never offered. | |
| # Uploads use -rl --checksum, not -a or -t: the RunPod network volume (FUSE) refuses chown and setting file times, | |
| # so changes are found by checksum. No credentials or audit logs are shipped. | |
| set -euo pipefail | |
| HERE=$(cd "$(dirname "$0")/.." && pwd) # .../evaluation/market_psych_v2/classifier | |
| REPO=$(cd "$HERE/../../.." && pwd) | |
| dir=${1:-}; host=${2:?host}; port=${3:?port} | |
| KEY=${SSH_KEY:-$HOME/.ssh/dom_runpod} | |
| SSH="ssh -p $port -i $KEY -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new" | |
| DATA=$REPO/data/market_psych/development/classifier-data-20261017 | |
| INPUTS=$REPO/data/market_psych/development/classifier-v1-20261017/inputs | |
| LOCAL=${LOCAL_RUNS:-$HOME/twitter_models/classifier-v1} | |
| case "$dir" in | |
| up) | |
| # The hash covers exactly what rsync ships (tests/ and caches excluded); untracked or modified files mark the | |
| # commit dirty, so the stamp never claims a clean commit for code that is not in HEAD. | |
| tree=$(cd "$HERE" && find . -type f ! -path './tests/*' ! -path '*/__pycache__/*' ! -name '.source_commit' \ | |
| ! -name '*.pyc' -print0 | sort -z | xargs -0 sha256sum | sha256sum | cut -c1-16) | |
| commit=$(git -C "$REPO" rev-parse HEAD) | |
| [ -z "$(git -C "$REPO" status --porcelain -- "$HERE")" ] || commit="$commit-dirty" | |
| echo "$commit tree:$tree" > "$HERE/.source_commit" | |
| $SSH "root@$host" "mkdir -p /workspace/code /workspace/data /workspace/inputs /workspace/runs" | |
| rsync -rlz --checksum --delete --exclude __pycache__ --exclude tests -e "$SSH" "$HERE/" "root@$host:/workspace/code/classifier/" | |
| rsync -rlz --checksum -e "$SSH" "$DATA/" "root@$host:/workspace/data/classifier-data-20261017/" | |
| rsync -rlz --checksum -e "$SSH" "$INPUTS/" "root@$host:/workspace/inputs/" | |
| echo "shipped $(cat "$HERE/.source_commit")" ;; | |
| down) | |
| mkdir -p "$LOCAL" | |
| rsync -rltz -e "$SSH" --exclude 'last/trainer.pt' "root@$host:/workspace/runs/" "$LOCAL/runs/" | |
| for f in check_env.json selftest.json nvidia-smi.txt; do | |
| rsync -rltz -e "$SSH" "root@$host:/workspace/$f" "$LOCAL/" || true | |
| done ;; | |
| *) sed -n 2,7p "$0"; exit 2 ;; | |
| esac | |