Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Randomizing seed for mixture of miners #571

Merged
merged 3 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions shared/epistula.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
import json
import random
import time
from hashlib import sha256
from math import ceil
Expand Down Expand Up @@ -207,6 +208,7 @@ async def make_openai_query(
uid: int,
stream: bool = False,
) -> tuple[ChatCompletion, list, list] | AsyncGenerator:
body["seed"] = body.get("seed", random.randint(0, 1000000))
axon_info = metagraph.axons[uid]
miner = openai.AsyncOpenAI(
base_url=f"http://{axon_info.ip}:{axon_info.port}/v1",
Expand Down
Empty file added test.md
Empty file.