You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Psyctl 프레임워크로 만들어진 스티어링 벡터를 사용하여 LLM을 스티어링하고 대화할 수 있는 Gradio 앱입니다.
기능
스티어링 벡터 선택 (드롭다운)
스티어링 강도 조절 (-5 ~ 5)
벡터에 맞는 모델 자동 로드
실시간 채팅 인터페이스
CPU/GPU 자동 감지
사용 가능한 스티어링 벡터
벡터
설명
대상 모델
English - Agreeableness
친화성
Llama-3.1-8B-Instruct
English - Awfully Sweet
지나치게 다정함
Llama-3.1-8B-Instruct
English - Neuroticism
신경증
Llama-3.1-8B-Instruct
English - Paranoid
편집증
Llama-3.1-8B-Instruct
Korean - Awfully Sweet
지나치게 다정함 (한국어)
EXAONE-3.5-7.8B-Instruct
Korean - Rude
무례함 (한국어)
EXAONE-3.5-7.8B-Instruct
설치 및 실행
1. 로컬 환경 (Windows)
# uv 설치 (없는 경우)Invoke-WebRequest-Uri "https://astral.sh/uv/install.ps1"-OutFile "install_uv.ps1"& .\install_uv.ps1
# 가상환경 생성 및 의존성 설치
uv venv
.\.venv\Scripts\Activate.ps1
uv sync
# HuggingFace 토큰 설정 (Llama 모델 접근용)$env:HF_TOKEN="your_huggingface_token"# 앱 실행
python app.py
2. Google Colab / RunPod 환경
# 의존성 설치
!pipinstalltorchtransformersgradiosafetensorshuggingface-hubaccelerate# HuggingFace 토큰 설정importosos.environ['HF_TOKEN'] ='your_huggingface_token'# 앱 실행
!pythonapp.py
psyctl-moducon/
├── app.py # Gradio 메인 앱
├── pyproject.toml # 프로젝트 설정 및 의존성
├── Dockerfile # RunPod용 Docker 이미지
├── start.sh # 컨테이너 시작 스크립트
├── README.md
├── src/
│ ├── __init__.py
│ ├── model_loader.py # LLM 로드 (CPU/GPU 자동 감지)
│ ├── steering.py # 스티어링 벡터 로드 및 적용
│ └── vector_manager.py # HuggingFace에서 벡터 다운로드
└── vectors/ # 스티어링 벡터 캐시