Spaces:
Sleeping
Sleeping
|
Download docs/md/design/integration/local_dev_configuration.md from thanhnv2323/humanize-text-python: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/docs/md/design/integration/local_dev_configuration.md
- Command line
-
hf download hf://spaces/thanhnv2323/humanize-text-python/docs/md/design/integration/local_dev_configuration.md
-
curl -L -o local_dev_configuration.md https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/docs/md/design/integration/local_dev_configuration.md
1.23 kB
Local Dev Configuration
Project paths
adsp/config.py defines canonical paths relative to the repo root:
DATA_DIR,RAW_DATA_DIR,INTERIM_DATA_DIR,PROCESSED_DATA_DIRMODELS_DIRREPORTS_DIR,FIGURES_DIR
These defaults are used by:
- persona extraction pipeline config (
PersonaExtractionConfig) - modeling CLIs (
train,predict)
Environment variables
.env is loaded at import time via python-dotenv in adsp/config.py.
Create it from the provided template:
cp .env.example .env
Common variables:
VLLM_BASE_URL,VLLM_MODEL,VLLM_API_KEYREASONING_BASE_URL,REASONING_MODEL,REASONING_API_KEY- Runtime chat backend:
ADSP_LLM_BACKEND(stuboropenai)ADSP_LLM_BASE_URL,ADSP_LLM_MODEL,ADSP_LLM_API_KEY
- Persona data paths:
ADSP_PERSONAS_DIRADSP_PERSONA_TRAITS_DIR
Useful commands
- Install deps:
make install - Lint:
make lint - Format:
make format - Run chat:
make chatorpython scripts/run_chat.py chat --persona-id basic-traditional
Notes on current repo state
- Several components are stubs (in-memory storage, placeholder inference/training). The design docs call out recommended production replacements.