Instructions to use cassanof/santacoder-lua with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cassanof/santacoder-lua with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cassanof/santacoder-lua", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cassanof/santacoder-lua", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("cassanof/santacoder-lua", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cassanof/santacoder-lua with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cassanof/santacoder-lua" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cassanof/santacoder-lua", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cassanof/santacoder-lua
- SGLang
How to use cassanof/santacoder-lua 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 "cassanof/santacoder-lua" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cassanof/santacoder-lua", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "cassanof/santacoder-lua" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cassanof/santacoder-lua", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cassanof/santacoder-lua with Docker Model Runner:
docker model run hf.co/cassanof/santacoder-lua
final model
Browse files- optimizer.pt +0 -3
- pytorch_model.bin +1 -1
- rng_state_0.pth +0 -3
- rng_state_1.pth +0 -3
- rng_state_2.pth +0 -3
- rng_state_3.pth +0 -3
- rng_state_4.pth +0 -3
- rng_state_5.pth +0 -3
- scheduler.pt +0 -3
- trainer_state.json +0 -0
- training_args.bin +0 -3
optimizer.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c211d0a26ef87f0dd55e135335cafda21515194d277f675ba55cd7f1cbad0d98
|
| 3 |
-
size 691
|
|
|
|
|
|
|
|
|
|
|
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4600336581
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79a2c00f34bbc8055578d83337628f02ba17eba58c43c459264f81febc52b3e6
|
| 3 |
size 4600336581
|
rng_state_0.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2051cdb825750aee44c19e9a997a686ff83fc5829c2b9af22b0f2f7c97b130c3
|
| 3 |
-
size 19639
|
|
|
|
|
|
|
|
|
|
|
|
rng_state_1.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ecf849118ac731dc33666cdf4a0a00e9bf9e4bac7561aa2b05f8b042545a0222
|
| 3 |
-
size 19639
|
|
|
|
|
|
|
|
|
|
|
|
rng_state_2.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2ec77b8bb871538a2ea1d8908e55fc15907379bf71e86e9c6fe41e9125c65022
|
| 3 |
-
size 19639
|
|
|
|
|
|
|
|
|
|
|
|
rng_state_3.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7ae148bba5af1b08c6e80725ef4b3a18a2affd64ddae98993b548d101db01b70
|
| 3 |
-
size 19639
|
|
|
|
|
|
|
|
|
|
|
|
rng_state_4.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:53b30b6668a81de342f2ae8de406035b85a2c7ca059f558d2ad91c703bd91084
|
| 3 |
-
size 19639
|
|
|
|
|
|
|
|
|
|
|
|
rng_state_5.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:16419376c9a32bf4196a57467c58e44979790c9b2744a6eb7e128ed5b918be74
|
| 3 |
-
size 19639
|
|
|
|
|
|
|
|
|
|
|
|
scheduler.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:17f4310a4b54fa5c6f9f50eb05c87f8a0f14816972fe8d23e34b1af7a5ef11f5
|
| 3 |
-
size 627
|
|
|
|
|
|
|
|
|
|
|
|
trainer_state.json
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
training_args.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:88b88489344f272b097adfa1c5003b95f3f777c1355c976efe84125722c152cb
|
| 3 |
-
size 3899
|
|
|
|
|
|
|
|
|
|
|
|