Instructions to use saracandu/stldec_random_512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use saracandu/stldec_random_512 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="saracandu/stldec_random_512", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("saracandu/stldec_random_512", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use saracandu/stldec_random_512 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "saracandu/stldec_random_512" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saracandu/stldec_random_512", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/saracandu/stldec_random_512
- SGLang
How to use saracandu/stldec_random_512 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 "saracandu/stldec_random_512" \ --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": "saracandu/stldec_random_512", "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 "saracandu/stldec_random_512" \ --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": "saracandu/stldec_random_512", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use saracandu/stldec_random_512 with Docker Model Runner:
docker model run hf.co/saracandu/stldec_random_512
Commit History
-
Upload tokenizer
Verified signaturef8d467a -
Upload STLForCausalLM
Verified signature1ae4de7
-
Upload STLForCausalLM
Verified signature2b226ce -
Upload 2 files
Verified signature5636e11 -
Upload STLForCausalLM
Verified signaturefd04674 -
Aggiorna .gitignore per escludere model.safetensors
gaoithee9186d4c
-
fixed model name
Verified signature2f6f9ea
-
added tokenizer_config.json
Verified signature07d0126 -
added vocabulary file, tokenizer.json
Verified signaturef99d658 -
create special_tokens_map.json
Verified signatureff19afe -
create config file
Verified signature5c449c7
-
upload checkpoint 48000
Verified signature730dd45 -
upload checkpoint 48000
Verified signature45a7f0b -
upload checkpoint 48000
Verified signatured406e44 -
upload checkpoint 48000
Verified signature7f4b766 -
upload checkpoint 24000
Verified signature07a2a28 -
upload checkpoint 24000
Verified signature5677f93 -
upload checkpoint 24000
Verified signaturea32e980 -
upload checkpoint 24000
Verified signature81fb53a -
upload checkpoint 23000
Verified signature38030b0 -
upload checkpoint 23000
Verified signature54b520a -
upload checkpoint 23000
Verified signatureeb7dcbd -
upload checkpoint 23000
Verified signature6907fb3 -
upload checkpoint 22000
Verified signature284f202 -
upload checkpoint 22000
Verified signature33d4aa2 -
upload checkpoint 22000
Verified signature318812a -
upload checkpoint 22000
Verified signature881356e -
upload checkpoint 21000
Verified signatureda54dbb -
upload checkpoint 21000
Verified signature3cd729b -
upload checkpoint 21000
Verified signature959db77 -
upload checkpoint 21000
Verified signature753da9f -
upload checkpoint 20000
Verified signature466ca01 -
upload checkpoint 20000
Verified signature5383c32 -
upload checkpoint 20000
Verified signature59ebd7b -
upload checkpoint 20000
Verified signature8cf7f21 -
upload checkpoint 19000
Verified signature3a3b9d0 -
upload checkpoint 19000
Verified signature31dccdc -
upload checkpoint 19000
Verified signature7219b4b -
upload checkpoint 19000
Verified signaturef71d13f -
upload checkpoint 18000
Verified signature3c72b43 -
upload checkpoint 18000
Verified signature1409768 -
upload checkpoint 18000
Verified signature4a14c3d -
upload checkpoint 18000
Verified signature31556ba -
upload checkpoint 17000
Verified signature5a208f2 -
upload checkpoint 17000
Verified signature30d0e87 -
upload checkpoint 17000
Verified signature8523bc7 -
upload checkpoint 17000
Verified signature7df51f2 -
upload checkpoint 16000
Verified signature6890b41 -
upload checkpoint 16000
Verified signaturefafebef -
upload checkpoint 16000
Verified signaturec64db78