Skip to content

Commit

Permalink
Switch to Github-connected runpod endpoint; bust cache
Browse files Browse the repository at this point in the history
  • Loading branch information
liambai committed Dec 21, 2024
1 parent 9a127d2 commit 853d84b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions interprot/endpoints/sae_inference/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ RUN gdown https://drive.google.com/uc?id=19aCVCVLleTc4QSiXZsi5hPqrE21duk6q

WORKDIR /

# Bust cache by downloading a dynamic page: https://stackoverflow.com/a/55621942
# This ensures that any update to handlerl.py gets reflected
ADD https://google.com cache_bust
COPY interprot/endpoints/sae_inference/handler.py .

EXPOSE 8000
Expand Down
4 changes: 2 additions & 2 deletions viz/src/runpod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function getSAEDimActivations(input: RunpodSAEDimActivationsInput):
}

// Both caches have missed, call API.
const data = await postRunpod(input, "yk9ehzl3h653vj");
const data = await postRunpod(input, "jrzmm3fq54zjuy");
SAEDimActivationsCache[dimCacheKey] = data.tokens_acts_list;
return data.tokens_acts_list;
}
Expand All @@ -85,7 +85,7 @@ export async function getSAEAllDimsActivations(
if (cacheKey in SAEAllDimsActivationsCache) {
return SAEAllDimsActivationsCache[cacheKey];
}
const data = await postRunpod(input, "yk9ehzl3h653vj");
const data = await postRunpod(input, "jrzmm3fq54zjuy");
SAEAllDimsActivationsCache[cacheKey] = data.token_acts_list_by_active_dim;
return data.token_acts_list_by_active_dim;
}
Expand Down

0 comments on commit 853d84b

Please sign in to comment.