Instructions to use rombodawg/rombos_Replete-Coder-Llama3-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rombodawg/rombos_Replete-Coder-Llama3-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rombodawg/rombos_Replete-Coder-Llama3-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rombodawg/rombos_Replete-Coder-Llama3-8B") model = AutoModelForCausalLM.from_pretrained("rombodawg/rombos_Replete-Coder-Llama3-8B") 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use rombodawg/rombos_Replete-Coder-Llama3-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rombodawg/rombos_Replete-Coder-Llama3-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rombodawg/rombos_Replete-Coder-Llama3-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rombodawg/rombos_Replete-Coder-Llama3-8B
- SGLang
How to use rombodawg/rombos_Replete-Coder-Llama3-8B 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 "rombodawg/rombos_Replete-Coder-Llama3-8B" \ --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": "rombodawg/rombos_Replete-Coder-Llama3-8B", "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 "rombodawg/rombos_Replete-Coder-Llama3-8B" \ --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": "rombodawg/rombos_Replete-Coder-Llama3-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio new
How to use rombodawg/rombos_Replete-Coder-Llama3-8B with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for rombodawg/rombos_Replete-Coder-Llama3-8B to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for rombodawg/rombos_Replete-Coder-Llama3-8B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for rombodawg/rombos_Replete-Coder-Llama3-8B to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="rombodawg/rombos_Replete-Coder-Llama3-8B", max_seq_length=2048, ) - Docker Model Runner
How to use rombodawg/rombos_Replete-Coder-Llama3-8B with Docker Model Runner:
docker model run hf.co/rombodawg/rombos_Replete-Coder-Llama3-8B
Replete-Coder-llama3-8b
Finetuned by: Rombodawg
More than just a coding model!
Although Replete-Coder has amazing coding capabilities, its trained on vaste amount of non-coding data, fully cleaned and uncensored. Dont just use it for coding, use it for all your needs! We are truly trying to make the GPT killer!

Thank you to TensorDock for sponsoring Replete-Coder-llama3-8b and Replete-Coder-Qwen2-1.5b you can check out their website for cloud compute rental below.
Replete-Coder-llama3-8b is a general purpose model that is specially trained in coding in over 100 coding languages. The data used to train the model contains 25% non-code instruction data and 75% coding instruction data totaling up to 3.9 million lines, roughly 1 billion tokens, or 7.27gb of instruct data. The data used to train this model was 100% uncensored, then fully deduplicated, before training happened.
The Replete-Coder models (including Replete-Coder-llama3-8b and Replete-Coder-Qwen2-1.5b) feature the following:
- Advanced coding capabilities in over 100 coding languages
- Advanced code translation (between languages)
- Security and vulnerability prevention related coding capabilities
- General purpose use
- Uncensored use
- Function calling
- Advanced math use
- Use on low end (8b) and mobile (1.5b) platforms
Notice: Replete-Coder series of models are fine-tuned on a context window of 8192 tokens. Performance past this context window is not guaranteed.
You can find the 25% non-coding instruction below:
And the 75% coding specific instruction data below:
These two datasets were combined to create the final dataset for training, which is linked below:
Prompt Template: Custom Alpaca
### System:
{}
### Instruction:
{}
### Response:
{}
Note: The system prompt varies in training data, but the most commonly used one is:
Below is an instruction that describes a task, Write a response that appropriately completes the request.
End token:
<|endoftext|>
Thank you to the community for your contributions to the Replete-AI/code_bagel_hermes-2.5 dataset. Without the participation of so many members making their datasets free and open source for any to use, this amazing AI model wouldn't be possible.
Extra special thanks to Teknium for the Open-Hermes-2.5 dataset and jondurbin for the bagel dataset and the naming idea for the code_bagel series of datasets. You can find both of their huggingface accounts linked below:
Another special thanks to unsloth for being the main method of training for Replete-Coder. Bellow you can find their github, as well as the special Replete-Ai secret sause (Unsloth + Qlora + Galore) colab code document that was used to train this model.
- https://github.com/unslothai/unsloth
- https://colab.research.google.com/drive/1VAaxMQJN9-78WLsPU0GWg5tEkasXoTP9?usp=sharing
Join the Replete-Ai discord! We are a great and Loving community!
- Downloads last month
- 8,355
Model tree for rombodawg/rombos_Replete-Coder-Llama3-8B
Datasets used to train rombodawg/rombos_Replete-Coder-Llama3-8B
meta-math/MetaMathQA
glaiveai/glaive-function-calling-v2
Space using rombodawg/rombos_Replete-Coder-Llama3-8B 1
Evaluation results
- pass@1 on HumanEvalself-reported0.647
- normalized accuracy on AI2 Reasoning Challenge (25-Shot)test set Open LLM Leaderboard
- normalized accuracy on HellaSwag (10-Shot)validation set Open LLM Leaderboard
- accuracy on MMLU (5-Shot)test set Open LLM Leaderboard
- multiple_choice_accuracy on TruthfulQA (0-shot)validation set Open LLM Leaderboard
- accuracy on Winogrande (5-shot)validation set Open LLM Leaderboard
- accuracy on GSM8k (5-shot)test set Open LLM Leaderboard
