Skip to content

Commit

Permalink
adding docker pytorch
Browse files Browse the repository at this point in the history
  • Loading branch information
noahgift committed Mar 28, 2023
1 parent 4869e59 commit ecaf7ae
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1112,12 +1112,21 @@ Code here: https://github.com/nogibjj/assimilate-openai/tree/main/rust-curl-ope
* Verified GCP Cloud Run works, code here: https://github.com/nogibjj/rust-mlops-template/tree/main/webdocker
![Screenshot 2023-03-07 at 4 31 02 PM](https://user-images.githubusercontent.com/58792/223558711-efedd835-0ddf-4727-854c-1928bb0a57de.png)
#### ONNX Series
#### Jupyter Notebook and Rust
* Next session try to build a GPT 2 CLI from ORT: https://github.com/pykeio/ort
* [evcxr](https://github.com/evcxr/evcxr)
First we need to compile: `cargo install evcxr_jupyter`
Next, lets do this: `evcxr_jupyter --install`
tldr; it does work! but you must do the following: `jupyter notebook --generate-config` and then edit cross origin.
to run plotting tutorial do the following:
git clone https://github.com/38/plotters-doc-data
#### ONNX Series
* Next session try to build a GPT 2 CLI from ORT: https://github.com/pykeio/ort
#### References
Expand Down
66 changes: 66 additions & 0 deletions Untitled.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"id": "d6dc1812",
"metadata": {},
"outputs": [],
"source": [
"let x =1;"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "ae339ff0",
"metadata": {},
"outputs": [
{
"ename": "Error",
"evalue": "expected function, found macro `println`",
"output_type": "error",
"traceback": [
"\u001b[31m[E0423] Error:\u001b[0m expected function, found macro `println`",
" \u001b[38;5;246m╭\u001b[0m\u001b[38;5;246m─\u001b[0m\u001b[38;5;246m[\u001b[0mcommand_3:1:1\u001b[38;5;246m]\u001b[0m",
" \u001b[38;5;246m│\u001b[0m",
" \u001b[38;5;246m1 │\u001b[0m \u001b[38;5;54mp\u001b[0m\u001b[38;5;54mr\u001b[0m\u001b[38;5;54mi\u001b[0m\u001b[38;5;54mn\u001b[0m\u001b[38;5;54mt\u001b[0m\u001b[38;5;54ml\u001b[0m\u001b[38;5;54mn\u001b[0m\u001b[38;5;249m(\u001b[0m\u001b[38;5;249mx\u001b[0m\u001b[38;5;249m)\u001b[0m",
" \u001b[38;5;246m ·\u001b[0m \u001b[38;5;54m─\u001b[0m\u001b[38;5;54m─\u001b[0m\u001b[38;5;54m─\u001b[0m\u001b[38;5;54m┬\u001b[0m\u001b[38;5;54m─\u001b[0m\u001b[38;5;54m─\u001b[0m\u001b[38;5;54m─\u001b[0m\u001b[38;5;100m│\u001b[0m ",
" \u001b[38;5;246m ·\u001b[0m \u001b[38;5;54m╰\u001b[0m\u001b[38;5;54m─\u001b[0m\u001b[38;5;54m─\u001b[0m\u001b[38;5;54m─\u001b[0m\u001b[38;5;54m─\u001b[0m\u001b[38;5;54m─\u001b[0m not a function",
" \u001b[38;5;246m ·\u001b[0m \u001b[38;5;100m│\u001b[0m ",
" \u001b[38;5;246m ·\u001b[0m \u001b[38;5;100m╰\u001b[0m\u001b[38;5;100m─\u001b[0m help: use `!` to invoke the macro: `!`",
"\u001b[38;5;246m───╯\u001b[0m"
]
}
],
"source": [
"println(x)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4c292467",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Rust",
"language": "rust",
"name": "rust"
},
"language_info": {
"codemirror_mode": "rust",
"file_extension": ".rs",
"mimetype": "text/rust",
"name": "Rust",
"pygment_lexer": "rust",
"version": ""
}
},
"nbformat": 4,
"nbformat_minor": 5
}

0 comments on commit ecaf7ae

Please sign in to comment.