Text Generation
Transformers
TensorBoard
Safetensors
gpt_bigcode
Generated from Trainer
text-generation-inference
Instructions to use pierreqi/starcoderbase-1b-cont-scilab with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pierreqi/starcoderbase-1b-cont-scilab with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pierreqi/starcoderbase-1b-cont-scilab")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pierreqi/starcoderbase-1b-cont-scilab") model = AutoModelForCausalLM.from_pretrained("pierreqi/starcoderbase-1b-cont-scilab", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pierreqi/starcoderbase-1b-cont-scilab with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pierreqi/starcoderbase-1b-cont-scilab" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pierreqi/starcoderbase-1b-cont-scilab", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pierreqi/starcoderbase-1b-cont-scilab
- SGLang
How to use pierreqi/starcoderbase-1b-cont-scilab 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 "pierreqi/starcoderbase-1b-cont-scilab" \ --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": "pierreqi/starcoderbase-1b-cont-scilab", "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 "pierreqi/starcoderbase-1b-cont-scilab" \ --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": "pierreqi/starcoderbase-1b-cont-scilab", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pierreqi/starcoderbase-1b-cont-scilab with Docker Model Runner:
docker model run hf.co/pierreqi/starcoderbase-1b-cont-scilab
Download model.safetensors from pierreqi/starcoderbase-1b-cont-scilab: direct link, hf CLI and curl.
- Browser
- Download file 2.27 GB
-
https://huggingface.co/pierreqi/starcoderbase-1b-cont-scilab/resolve/main/model.safetensors
- Command line
-
hf download hf://pierreqi/starcoderbase-1b-cont-scilab/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/pierreqi/starcoderbase-1b-cont-scilab/resolve/main/model.safetensors
2.27 GB
- Xet hash:
- a9d805274dfe06a5ef5a9fdac5ece7f2a52e55e2613ee566363f6df739e95d30
- Size of remote file:
- 2.27 GB
- SHA256:
- f347dfcf0b44db8e80a88394606e15f9fbe4da400a46465840d5e9a4673abd46
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.