yagilb's picture
Update README.md
c40e66c verified
|
raw
history blame
8.11 kB
---
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).<br>
**Original model**: https://huggingface.co/cognitivecomputations/dolphin-2.8-mistral-7b-v02.<br>
**GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b2536](https://github.com/ggerganov/llama.cpp/releases/tag/b2536)<br>
**Works with:** LM Studio 0.2.14 and newer<br>
## 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.<br>
## 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 (
<form onSubmit={handleSubmit(onSubmit)}>
<MultiSelect
name="multiSelect"
ref={register({ required: true, validate: value => value.length <= 10 })}
/>
{errors.multiSelect && (
<p>Please select no more than 10 items.</p>
)}
<input type="submit" />
</form>
);
}
```
In the above code, we register the multi select component with the `useForm` hook. The `validate` function is used to validate that the number of selected items is less than or equal to 10. If the validation fails, an error message will be displayed.
Remember to replace `'your-multi-select-component'` with the name of your multi select component.
That's it! Now, when the form is submitted, it will validate that no more than 10 items are selected in the multi select component.
```
## Technical Details
This model was trained with the following datasets:
- [cognitivecomputations/dolphin](https://huggingface.co/datasets/cognitivecomputations/dolphin)
- [cognitivecomputations/dolphin-coder](https://huggingface.co/datasets/cognitivecomputations/dolphin-coder)
- [cognitivecomputations/samantha-data](https://huggingface.co/datasets/cognitivecomputations/samantha-data)
- [jondurbin/airoboros-2.2.1](https://huggingface.co/datasets/jondurbin/airoboros-2.2.1)
- [teknium/openhermes-2.5](https://huggingface.co/datasets/teknium/openhermes-2.5)
- [m-a-p/Code-Feedback](https://huggingface.co/datasets/m-a-p/Code-Feedback)
- [m-a-p/CodeFeedback-Filtered-Instruction](https://huggingface.co/datasets/m-a-p/CodeFeedback-Filtered-Instruction)
πŸ™ Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/) for making all of this possible.
## Disclaimers
TBD