forked from Dipraise1/Engram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.miner.example
More file actions
44 lines (35 loc) · 1.32 KB
/
Copy path.env.miner.example
File metadata and controls
44 lines (35 loc) · 1.32 KB
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
# ── Engram Miner — Environment Template ─────────────────────────────────────
# Copy to .env.miner and fill in your values.
# Start with: python neurons/miner.py
# Bittensor
WALLET_NAME=default
WALLET_HOTKEY=default
SUBTENSOR_NETWORK=test
NETUID=450
# Embedding Model
USE_LOCAL_EMBEDDER=true
LOCAL_EMBEDDING_MODEL=all-MiniLM-L6-v2
EMBEDDING_DIM=384
# Vector Store
VECTOR_STORE_BACKEND=faiss
FAISS_INDEX_PATH=./data/miner.index
# Miner
MINER_PORT=8091
EXTERNAL_IP=YOUR_PUBLIC_IP # required: your server's public IP
MAX_VECTORS_PER_NODE=5000000
# Request limits
RATE_LIMIT_MAX_REQUESTS=100 # max requests per key per window
RATE_LIMIT_WINDOW_SECS=60
MINER_MAX_BODY_BYTES=10485760 # 10 MB max request body
# Anti-spam
MIN_INGEST_STAKE_TAO=0.001
# Security — signature verification
# false: warn on unsigned requests (safe default during rollout)
# true: enforce signed requests (recommended once validators are updated)
REQUIRE_HOTKEY_SIG=false
# ALLOWED_VALIDATOR_HOTKEYS=5F...,5G... # restrict to specific validators
# Security — metagraph registration check
# false: warn when an unregistered hotkey calls the miner (default)
# true: reject requests from hotkeys not registered on the subnet
REQUIRE_METAGRAPH_REG=false
LOG_LEVEL=INFO