Spaces:
Configuration error
Configuration error
Commit ·
86f55a2
1
Parent(s): 66ba2da
remove instructions
Browse files
main.py
CHANGED
|
@@ -1,13 +1,5 @@
|
|
| 1 |
-
"""
|
| 2 |
-
Here’s the exam:
|
| 3 |
-
1. Select a Causal language Model
|
| 4 |
-
2. You can freely train/fine-tune/or use it outside the box into what use-case you prefer
|
| 5 |
-
3. Deploy that to heroku, render, or any free deployment platforms (free only) using Fast API.
|
| 6 |
-
4. Must be able to do post requests remotely.
|
| 7 |
-
5. Upload it to github with a short readme on how to install and infer on your endpoint
|
| 8 |
-
"""
|
| 9 |
from fastapi import FastAPI
|
| 10 |
-
from transformers import AutoModelForCausalLM,
|
| 11 |
from pydantic import BaseModel
|
| 12 |
import torch
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 3 |
from pydantic import BaseModel
|
| 4 |
import torch
|
| 5 |
|