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