{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# 下载代码1\n", "!git clone https://git.yoqi.me/lyq/nl2sql.git\n", "\n", "\n", "# 下载代码2\n", "!wget http://cdn.yoqi.me/direct/2019-07-06/nl2sql_baseline.zip\n", "!unzip ./nl2sql_baseline.zip\n", "!cp -r ./data_sql/* ./nl2sql_baseline/data/" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "'nvidia-smi' is not recognized as an internal or external command,\n", "operable program or batch file.\n" ] } ], "source": [ "# Tesla K80 下可以运行\n", "!nvidia-smi" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "!pip install -r requirements.txt" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "! cd nl2sql_baseline && sh ./start_train.sh 0 128" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "! cd nl2sql_baseline && sh ./start_test.sh 0 pred_example" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.0" } }, "nbformat": 4, "nbformat_minor": 2 }