Instructions to use NeuralNovel/Gecko-7B-v0.1-DPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeuralNovel/Gecko-7B-v0.1-DPO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NeuralNovel/Gecko-7B-v0.1-DPO") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NeuralNovel/Gecko-7B-v0.1-DPO") model = AutoModelForCausalLM.from_pretrained("NeuralNovel/Gecko-7B-v0.1-DPO", device_map="auto") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NeuralNovel/Gecko-7B-v0.1-DPO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NeuralNovel/Gecko-7B-v0.1-DPO" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NeuralNovel/Gecko-7B-v0.1-DPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NeuralNovel/Gecko-7B-v0.1-DPO
- SGLang
How to use NeuralNovel/Gecko-7B-v0.1-DPO 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 "NeuralNovel/Gecko-7B-v0.1-DPO" \ --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": "NeuralNovel/Gecko-7B-v0.1-DPO", "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 "NeuralNovel/Gecko-7B-v0.1-DPO" \ --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": "NeuralNovel/Gecko-7B-v0.1-DPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use NeuralNovel/Gecko-7B-v0.1-DPO with Docker Model Runner:
docker model run hf.co/NeuralNovel/Gecko-7B-v0.1-DPO
NeuralNovel/Gecko-7B-v0.1-DPO
Designed to generate instructive and narrative text, with a focus on mathematics & numeracy.
Full-parameter fine-tune (FFT) of Mistral-7B-Instruct-v0.2, with apache-2.0 license.
You may download and use this model for research, training and commercial purposes.
This model is suitable for commercial deployment.
Data-set
The model was finetuned using the orca_dpo_pairs dataset
Summary
Fine-tuned with the intention of following all prompt directions, making it more suitable for math questions and problem solving.
Out-of-Scope Use
The model may not perform well in scenarios unrelated to instructive and narrative text generation. Misuse or applications outside its designed scope may result in suboptimal outcomes.
Bias, Risks, and Limitations
This model may not work as intended. As such all users are encouraged to use this model with caution and respect.
This model is for testing and research purposes only, it has reduced levels of alignment and as a result may produce NSFW or harmful content. The user is responsible for their output and must use this model responsibly.
Hardware and Training
Trained on a single 80GB A100 for 2 hours trained using Axolotl
Thank you to h2m for the generous funding.
Open LLM Leaderboard Evaluation Results
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 63.22 |
| AI2 Reasoning Challenge (25-Shot) | 56.74 |
| HellaSwag (10-Shot) | 82.38 |
| MMLU (5-Shot) | 60.42 |
| TruthfulQA (0-shot) | 57.42 |
| Winogrande (5-shot) | 77.35 |
| GSM8k (5-shot) | 45.03 |
- Downloads last month
- 6
Model tree for NeuralNovel/Gecko-7B-v0.1-DPO
Base model
mistralai/Mistral-7B-Instruct-v0.2Dataset used to train NeuralNovel/Gecko-7B-v0.1-DPO
Evaluation results
- normalized accuracy on AI2 Reasoning Challenge (25-Shot)test set Open LLM Leaderboard56.740
- normalized accuracy on HellaSwag (10-Shot)validation set Open LLM Leaderboard82.380
- accuracy on MMLU (5-Shot)test set Open LLM Leaderboard60.420
- mc2 on TruthfulQA (0-shot)validation set Open LLM Leaderboard57.420
- accuracy on Winogrande (5-shot)validation set Open LLM Leaderboard77.350
- accuracy on GSM8k (5-shot)test set Open LLM Leaderboard45.030
