Skip to content

Commit

Permalink
decreased limiter ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
PsicoThePato committed May 21, 2024
1 parent 0c299d1 commit 2933d6e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/synthia/miner/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ClaudeProviders(Enum):

def stake_to_ratio(stake: int, multiplier: int = 1) -> float:
max_ratio = 4
base_ratio = 13
base_ratio = 2
if multiplier <= 1/max_ratio:
raise ValueError(
f"Given multiplier {multiplier} would set 0 tokens for all stakes"
Expand Down Expand Up @@ -73,7 +73,11 @@ def serve(
case ClaudeProviders.OPENROUTER:
module = OpenrouterModule()

stake_limiter = StakeLimiterParams(get_refill_rate=stake_to_ratio)
stake_limiter = StakeLimiterParams(
epoch=800,
cache_age=600,
get_refill_per_epoch=stake_to_ratio,
)
server = ModuleServer(
module, keypair, subnets_whitelist=[3], limiter = stake_limiter
)
Expand Down

0 comments on commit 2933d6e

Please sign in to comment.