Instructions to use Alexis-Az/Story-Generation-Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Alexis-Az/Story-Generation-Model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Alexis-Az/Story-Generation-Model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Alexis-Az/Story-Generation-Model") model = AutoModelForCausalLM.from_pretrained("Alexis-Az/Story-Generation-Model") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Alexis-Az/Story-Generation-Model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Alexis-Az/Story-Generation-Model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Alexis-Az/Story-Generation-Model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Alexis-Az/Story-Generation-Model
- SGLang
How to use Alexis-Az/Story-Generation-Model with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Alexis-Az/Story-Generation-Model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Alexis-Az/Story-Generation-Model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Alexis-Az/Story-Generation-Model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Alexis-Az/Story-Generation-Model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Alexis-Az/Story-Generation-Model with Docker Model Runner:
docker model run hf.co/Alexis-Az/Story-Generation-Model
Upload LlamaForCausalLM (#2)
Browse files- Upload LlamaForCausalLM (88ffdff929c9a8b309dc5464bf1d9e1873cfb75d)
- config.json +1 -0
- model-00001-of-00012.safetensors +1 -1
- model-00002-of-00012.safetensors +1 -1
- model-00003-of-00012.safetensors +1 -1
- model-00004-of-00012.safetensors +1 -1
- model-00005-of-00012.safetensors +1 -1
- model-00006-of-00012.safetensors +1 -1
- model-00007-of-00012.safetensors +1 -1
- model-00008-of-00012.safetensors +1 -1
- model-00009-of-00012.safetensors +1 -1
- model-00010-of-00012.safetensors +1 -1
- model-00011-of-00012.safetensors +1 -1
- model-00012-of-00012.safetensors +1 -1
config.json
CHANGED
|
@@ -31,6 +31,7 @@
|
|
| 31 |
"rope_theta": 500000.0,
|
| 32 |
"tie_word_embeddings": false,
|
| 33 |
"torch_dtype": "float32",
|
|
|
|
| 34 |
"transformers_version": "4.48.1",
|
| 35 |
"unsloth_fixed": true,
|
| 36 |
"unsloth_version": "2025.2.12",
|
|
|
|
| 31 |
"rope_theta": 500000.0,
|
| 32 |
"tie_word_embeddings": false,
|
| 33 |
"torch_dtype": "float32",
|
| 34 |
+
"torchscript": true,
|
| 35 |
"transformers_version": "4.48.1",
|
| 36 |
"unsloth_fixed": true,
|
| 37 |
"unsloth_version": "2025.2.12",
|
model-00001-of-00012.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2973795480
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0479e8861585889cd0b638628d673b3f13f11bdcdd667abb7f594eb1a80004f
|
| 3 |
size 2973795480
|
model-00002-of-00012.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2785119728
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3902bb1be8168f8a00c8b161ee6245b7e5b09a6b75b45cca3f73f7e2015edc66
|
| 3 |
size 2785119728
|
model-00003-of-00012.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2852228248
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7293cbc5aedaa8f87e4f5864f6ee29a32c0afc3d38c3dbe378567d0b70428a11
|
| 3 |
size 2852228248
|
model-00004-of-00012.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2852228256
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40a1324402a723d3e3102bb5309b0b0a10dbd385e92213a391468b739067a22b
|
| 3 |
size 2852228256
|
model-00005-of-00012.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2952924920
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd4ceedb9e69b9c3636bc4608825242234f3b4f329b02814dbda2c8602dc149b
|
| 3 |
size 2952924920
|
model-00006-of-00012.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2919337256
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a62c953fa4c26e561935be5553b9a09663c7d5cb0a88e956547f6e2caef19ee
|
| 3 |
size 2919337256
|
model-00007-of-00012.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2852228272
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a703553827bf4966a7d7331a84d0c943cea72d97cbde3c8450584c7e1cd6a7a
|
| 3 |
size 2852228272
|
model-00008-of-00012.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2952924920
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94dca01cd70b0b80e5974fb7f402bbe5a440837759107b1c10201b05927a529f
|
| 3 |
size 2952924920
|
model-00009-of-00012.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2919337256
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d87e4e8bcfc56c91d43598ba755e2258ec652ab9e7f6257bf78eb325a093a0b
|
| 3 |
size 2919337256
|
model-00010-of-00012.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2852228272
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:317ed8859109810b8af4525021744913ef6ee8027368c2b4205845e874aec135
|
| 3 |
size 2852228272
|
model-00011-of-00012.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1107379664
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82c36a715c989faf9c8d63fa7de92b28787c94f429c492fefc97f4510fbced12
|
| 3 |
size 1107379664
|
model-00012-of-00012.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2101346432
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be9f4efee6fee92a32dcfc24301803b3917af6177bc2d6b1cffc787e3e73d941
|
| 3 |
size 2101346432
|