Views
No views yet
faizack/kronos-small-customgit init it and push directly to Hugging Face under your account faizack.config.json – copied or downloaded from NeoQuasar/Kronos-smallmodel.safetensors – weights from NeoQuasar/Kronos-smallmodel.py – Kronos model definition (from the official GitHub repo)tokenizer.py – Kronos tokenizer implementationpredictor.py – KronosPredictor wrapperinference.py – entrypoint used by Hugging Face Inference Endpoints (already provided here)requirements.txt – Python dependencies (already provided here)README.md (this file)inference.pyrequirements.txt.env.example.gitattributes (Git LFS for safetensors).gitignoreconfig.jsonmodel.safetensorsmodel.pytokenizer.pypredictor.py1cd kronos-small-custom
2
3# (optional) initialize git
4git init
5git lfs install
6
7# Log in to Hugging Face
8huggingface-cli login
9
10# Create the remote repo under your account
11huggingface-cli repo create faizack/kronos-small-custom --type model
12
13# Add HF remote
14git remote add origin https://huggingface.co/faizack/kronos-small-custommodel.pytokenizer.pypredictor.pyNeoQuasar/Kronos-small on Hugging Face, download:
config.jsonmodel.safetensors1git add .
2git commit -m "Initial Kronos-small custom deployment"
3git push -u origin maininference.py exposes a predict(request) function that Hugging Face Inference Endpoints will call.1{
2 "inputs": {
3 "df": [
4 {"open": 1.0, "high": 1.1, "low": 0.9, "close": 1.05},
5 {"open": 1.05, "high": 1.12, "low": 1.0, "close": 1.08}
6 ],
7 "x_timestamp": ["2024-01-01T00:00:00Z", "2024-01-01T01:00:00Z"],
8 "y_timestamp": ["2024-01-01T02:00:00Z", "2024-01-01T03:00:00Z"],
9 "pred_len": 2,
10 "T": 1.0,
11 "top_p": 0.9,
12 "sample_count": 1
13 }
14}1{
2 "predictions": [
3 {
4 "open": ...,
5 "high": ...,
6 "low": ...,
7 "close": ...
8 },
9 {
10 "open": ...,
11 "high": ...,
12 "low": ...,
13 "close": ...
14 }
15 ]
16}predict returns JSON-serializable data.