---
base_model: alpindale/Mistral-7B-v0.2-hf
language:
- en
license: apache-2.0
datasets:
- cognitivecomputations/dolphin
- cognitivecomputations/dolphin-coder
- cognitivecomputations/samantha-data
- jondurbin/airoboros-2.2.1
- teknium/openhermes-2.5
- m-a-p/Code-Feedback
- m-a-p/CodeFeedback-Filtered-Instruction
model-index:
- name: dolphin-2.8-mistral-7b-v02
results:
- task:
type: text-generation
dataset:
type: openai_humaneval
name: HumanEval
metrics:
- name: pass@1
type: pass@1
value: 0.469
verified: false
quantized_by: bartowski
pipeline_tag: text-generation
lm_studio:
param_count: 7b
use_case: general
release_date: 28-03-2024
model_creator: cognitivecomputations
---
## 💫 Community Model> Dolphin 2.8 Mistral 7b v0.2 🐬 by Cognitive Computations
*👾 [LM Studio](https://lmstudio.ai) Community models highlights program. Highlighting new & noteworthy models by the community. Join the conversation on [Discord](https://discord.gg/aPQfnNkxGC)*.
**Model creator:** [Cognitive Computations](https://huggingface.co/cognitivecomputations).
**Original model**: https://huggingface.co/cognitivecomputations/dolphin-2.8-mistral-7b-v02.
**GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b2536](https://github.com/ggerganov/llama.cpp/releases/tag/b2536)
**Works with:** LM Studio 0.2.14 and newer
## Model TLDR:
Dolphin 2.8 is a model from the Dolphin family, based on Mistral 0.2, and fine tuned by [Eric Hartford](https://huggingface.co/ehartford/) and [Cognitive Computations](https://huggingface.co/cognitivecomputations).
With a broad range of uses, this model makes for a great general-use daily driver.
## Prompt Template:
Choose the `ChatML` preset in your LM Studio.
Under the hood, the model will see a prompt that's formatted like so:
```
<|im_start|>system
You are Dolphin, a helpful AI assistant.<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
```
## Use case and examples
Dolphin is trained on a vast variety of data, including conversational, logical, and coding. This unique blend, along with a keen eye from the model creators, makes for a wonderful model that can tackle any task you throw at it.
## General knowledge:
```
<|im_start|>system
You are Dolphin, a helpful AI assistant.
<|im_end|>
<|im_start|>user
What does the ISO number mean in camera terminology?<|im_end|>
<|im_start|>assistant
The ISO number in camera terminology refers to the camera's sensitivity to light. ISO stands for International Organization for Standardization. It is a measure of the luminous flux received by a sensor or film.
A higher ISO number means that the camera's sensor is more sensitive to light, allowing for faster shutter speeds in low-light situations. However, increasing the ISO also increases the risk of image noise (graininess) in the final image. Conversely, a lower ISO number means that the camera's sensor is less sensitive to light, requiring slower shutter speeds in well-lit conditions to avoid overexposure.
In summary, the ISO number in camera terminology determines how sensitive the camera's sensor is to light, and it can be adjusted to balance exposure and image quality in various lighting conditions.
```
## Conversational:
```
<|im_start|>system
You are Dolphin, a helpful AI assistant.
<|im_end|>
<|im_start|>user
What is the meaning of life, and how can I find my purpose?<|im_end|>
<|im_start|>assistant
The meaning of life is a subjective and philosophical question that has been debated for centuries. Different people have different perspectives on what gives life meaning, as it can vary greatly from person to person. Some people find meaning in their relationships, their work, or their spiritual beliefs.
To find your purpose, you can follow these steps:
1. Reflect on your passions and interests: Think about the things that genuinely excite you and make you feel alive. Consider what activities you enjoy and what subjects you find most interesting.
2. Explore your talents and strengths: Identify the skills and abilities you possess. You may have natural talents that you can develop and use to contribute to society.
3. Assess your values and principles: Reflect on your beliefs, moral compass, and personal code of conduct. Consider how your values can guide you in determining your purpose.
4. Set goals and objectives: Establish short-term and long-term goals that align with your passions, talents, and values. This will help you stay focused and motivated in your journey to find your purpose.
5. Take action and learn from experience: Begin to pursue the goals and objectives you've set, and learn from the experiences you encounter along the way. Embrace the process of self-discovery and growth.
6. Seek guidance and support: Share your journey with friends, family, or mentors who can offer valuable advice, encouragement, and resources to help you find your purpose.
Ultimately, finding your purpose is a personal and ongoing process that requires introspection, self-awareness, and a willingness to explore new opportunities. Remember, there is no one-size-fits-all answer to the meaning of life, and your purpose may change and evolve over time.
```
## Coding:
```
<|im_start|>system
You are Dolphin, a helpful AI assistant.
<|im_end|>
<|im_start|>user
I have a multi select component in react, and I register it to a useForm. I want to validate that there are no more than 10 items selected on submission. Is this possible?<|im_end|>
<|im_start|>assistant
Yes, it is possible to validate the number of selected items in a multi select component in React with the help of `useForm`. You can use the `validate` function from `react-hook-form` to achieve this. Here's a step-by-step guide on how to do it:
First, import the necessary libraries:
```jsx
import { useForm } from 'react-hook-form';
import { MultiSelect } from 'your-multi-select-component';
```
Next, create a form with the multi select component:
```jsx
function MyForm() {
const { register, handleSubmit, errors } = useForm();
const onSubmit = data => {
// Handle form submission logic here
};
return (