Create modelrepotest.mdx#696
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
@Promptless add this as step one in the doc: Install Go (and the command is: brew install go) |
|
Done — added Install Go ( |
| export RUNPOD_GRAPHQL_URL="https://api.runpod.io/graphql" | ||
| export RUNPOD_API_KEY="your-api-key" # replace with your actual API key | ||
|
|
||
| export MODEL_NAME="$(whoami)-test-$(date +%s)" # unique name per test run — reusing the same name uploads a new version, not a new model |
There was a problem hiding this comment.
This can probably be changed to:
export MODEL_NAME="model_name" # unique name per test run — reusing the same name uploads a new version, not a new model
There was a problem hiding this comment.
|
|
||
| --- | ||
|
|
||
| ## Scripted testing |
There was a problem hiding this comment.
We should just remove this section, as it was just for internal testing
There was a problem hiding this comment.
|
|
||
| ```bash | ||
| runpodctl model add \ | ||
| --name "$MODEL_NAME" \ # the name to register the model under in your repo |
There was a problem hiding this comment.
There can't be comments after the \. The \ needs to be the last character on the line. The comments can go before or after.
There was a problem hiding this comment.
| ```bash | ||
| export USER_ID="$(runpodctl user | jq -r '.id')" # your Runpod user ID | ||
| export MODEL_HASH="$(runpodctl model list --name "$MODEL_NAME" | jq -r '.[0].versions[0].hash')" # the hash from step 3 | ||
| export MODEL_URL="https://local/${USER_ID}/${MODEL_NAME}:${MODEL_HASH}" # the full model reference URL |
There was a problem hiding this comment.
Let's get rid of this line, as we will build the Model URL and also the reference below
There was a problem hiding this comment.
| export MODEL_URL="https://local/${USER_ID}/${MODEL_NAME}:${MODEL_HASH}" # the full model reference URL | ||
| ``` | ||
|
|
||
| The resulting `MODEL_URL` will look like: |
There was a problem hiding this comment.
Get rid of this too, as we are no longer using this variable
There was a problem hiding this comment.
|
|
||
| ```bash | ||
| runpodctl serverless create \ | ||
| --name "$(whoami)_ctl_test" \ # name for the endpoint |
There was a problem hiding this comment.
This could be something more generic. whoami was confusing some users. It could be changed to:
--name "my_worker" \
There was a problem hiding this comment.
| --gpu-id "AMPERE_24" \ # GPU type | ||
| --workers-max 3 \ # maximum number of active workers | ||
| --workers-min 1 \ # minimum number of workers kept warm | ||
| --model-reference "$MODEL_URL" # attaches your model to the endpoint |
There was a problem hiding this comment.
Let's change this line to these two lines:
--model-reference "https://local/$USER_ID/$MODEL_NAME:$MODEL_HASH" \
--env MODEL_NAME="/runpod/model-store/modelrepo-local/models/$USER_ID/$MODEL_NAME/$MODEL_HASH"
There was a problem hiding this comment.
Also need to add the following to work around a bug in runpodctl:
--min-cuda-version "13.0"
There was a problem hiding this comment.
| ```bash | ||
| runpodctl serverless create \ | ||
| --name "$(whoami)_ctl_test" \ # name for the endpoint | ||
| --template-id "mockworker" \ # worker template to use |
There was a problem hiding this comment.
Let's change this line to:
--hub-id "cm8h09d9n000008jvh2rqdsmb" \
As that will actually do something if they use it, rather than being the mockworker which doesn't do anything
There was a problem hiding this comment.
| --- | ||
|
|
||
| ### Step 6: Verify the model is working | ||
|
|
There was a problem hiding this comment.
We should also mention that they can use the Web UI to send requests to the worker, if they like
There was a problem hiding this comment.
|
I added some comments in line, but generically, for all of the shell script code blocks, there can't be comments after the last |
|
@Promptless can you address all the pending comments from brosenpod ? |
- Simplify MODEL_NAME example to a placeholder - Remove internal-only scripted testing section - Move inline comments off line-continuation (\) lines in shell blocks - Drop unused MODEL_URL variable and its example - Use generic --name, real --hub-id, and split model reference into --model-reference and --env, plus --min-cuda-version workaround - Mention the web UI as an alternative for sending test requests
|
Done — I've addressed all of @brosenpod's pending review comments and pushed the changes to this PR branch. Summary of what changed in
One additional cleanup: since The updated preview should refresh shortly. |
No description provided.