File size: 1,035 Bytes
b65eda7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Environment variables template for Apertus Transparency Guide
# Copy this file to .env and fill in your values

# Hugging Face configuration
HF_TOKEN=your token

# Model configuration
DEFAULT_MODEL_NAME=swiss-ai/apertus-7b-instruct
MODEL_CACHE_DIR=./model_cache
DEVICE_MAP=auto
TORCH_DTYPE=float16

# Dashboard configuration
STREAMLIT_SERVER_PORT=8501
STREAMLIT_SERVER_ADDRESS=localhost
STREAMLIT_THEME_BASE=light

# Logging configuration
LOG_LEVEL=INFO
LOG_FILE=./logs/apertus.log

# Performance configuration
MAX_MEMORY_GB=16
ENABLE_MEMORY_MAPPING=true
USE_FAST_TOKENIZER=true

# Analysis configuration
DEFAULT_MAX_TOKENS=300
DEFAULT_TEMPERATURE=0.7
ENABLE_ATTENTION_ANALYSIS=true
ENABLE_HIDDEN_STATES=true

# Swiss specific configuration
DEFAULT_LANGUAGE=de
SUPPORTED_LANGUAGES=de,fr,it,en,rm
SWISS_CONTEXT_ENABLED=true

# Development configuration
DEBUG_MODE=false
ENABLE_PROFILING=false
SAVE_ANALYSES=true
ANALYSIS_OUTPUT_DIR=./analysis_outputs

# GPU configuration (if available)
CUDA_VISIBLE_DEVICES=0
GPU_MEMORY_FRACTION=0.9