mirror of
https://github.com/luxfhe/examples.git
synced 2026-10-30 18:13:15 +00:00
ML examples: - credit_scoring: Credit risk prediction with HMEQ data - disease_prediction: Healthcare ML on encrypted records - cifar: Encrypted image classification - federated_learning: Distributed FHE training - hybrid_model: Mixed FHE/plaintext inference Deployment: - breast_cancer: Cancer detection API - sentiment_analysis: Encrypted NLP - server: FHE inference server Blockchain: - hardhat-template: Solidity + FHE - react-template: Full dApp with FHE
14 lines
457 B
Bash
14 lines
457 B
Bash
#!/bin/bash
|
|
uname_str=$(uname)
|
|
echo "${uname_str}"
|
|
if [[ $uname_str != "Darwin" ]]; then
|
|
echo "Not Darwin"
|
|
# tune the cpu-list according to the resources you want to allocate to it
|
|
taskset --cpu-list 0-12 python serve_model.py --port 8000 --path-to-models ./compiled_models
|
|
# No-limit
|
|
# PATH_TO_MODELS="compiled_models" PORT=8000 python serve_model.py
|
|
else
|
|
echo "Darwin"
|
|
python serve_model.py --port 8000 --path-to-models ./compiled_models
|
|
fi
|