feat: ship API shell on fallback stub, resolve Vercel/PyTorch hosting, decision, pin deps, update docs#21
Merged
Conversation
… decision, pin deps, update docs
|
@hammadabbasiisi786-cloud is attempting to deploy a commit to the chuzaairforce-7557's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verify API shell (Starlette app + Vercel functions) builds and runs
end-to-end against FallbackSolver alone, no GROQ_API_KEY or checkpoint
required; keep torch/groq imports lazy so serverless functions stay
import-safe
Confirm via tests/integration/test_solve_endpoint.py that the stub
solver path returns correct shape/status for diff, integrate,
partial, gradient, and tangent_line
Resolve PyTorch-on-Vercel feasibility: neural inference (torch +
model.pkl) exceeds Vercel's serverless deployment size limit and
is not viable in prod; document decision in docs/HOSTING_DECISION.md
(fallback-only in prod, Groq as opt-in upgrade, self-hosted neural
deferred)
Pin requirements.txt to exact versions for reproducible Vercel
builds; add requirements-neural.txt for local/dev-only neural setup
(was referenced in README but missing)
Fix vercel.json build step that referenced an empty website/ dir
and would have broken deployment
Update README.md and docs/RUN_LOCALLY.md to reflect fallback-first,
Groq-optional behavior and link the new hosting decision doc