Edit model card

πŸ’« Community Model> Starling-LM-7B-beta by Nexusflow

πŸ‘Ύ LM Studio Community models highlights program. Highlighting new & noteworthy models by the community. Join the conversation on Discord.

Model creator: Nexusflow
Original model: Starling-LM-7B-beta
GGUF quantization: provided by bartowski based on llama.cpp release b2440

Model Summary:

Starling-LM-7B-beta is an iteration on the Starling series of models, building on the work from berkeley-nest who released Starling-LM-7B-alpha.
This model is finetuned from openchat/openchat-3.5-0106 based on Mistral-7B-v0.1.
Using Nexusflow/Starling-RM-34B as the reward model and a policy optimization method of Fine-Tuning Language Models from Human Preferences (PPO) to yield impressive results for such a small model.

Prompt Template:

Choose the 'OpenChat' preset in your LM Studio.

Under the hood, the model will see a prompt that's formatted like so:

GPT4 Correct User: {prompt}<|end_of_turn|>GPT4 Correct Assistant:

You can also choose the 'OpenChatCode' for a coding assistant.

Under the hood, the model will see a prompt that's formatted like so:

Code User: {prompt}<|end_of_turn|>Code Assistant:

Note that this model does not support a System prompt.

Use case and examples

Starling-LM-7B-beta is tuned to achieve impressive multi-turn chat performance. The base model was designed for being a generalist and coding tuned model, so it will work well for general tasks as well as coding.

General knowledge:

GPT4 Correct User: Why is the sky blue?<|end_of_turn|> GPT4 Correct Assistant: The sky appears blue due to a phenomenon called Rayleigh scattering, named after British scientist Lord Rayleigh who first studied it in detail. Here's a simplified explanation of why this occurs:

  1. Sunlight is composed of various colors of light, each with different wavelengths. These colors include red, orange, yellow, green, blue, indigo, and violet, which together form the visible spectrum.

  2. When sunlight enters Earth's atmosphere, it interacts with molecules of air (mainly nitrogen and oxygen) and small particles like dust and water droplets. These interactions cause the different colors of light to scatter in various directions.

  3. Rayleigh scattering is more effective at shorter wavelengths, meaning that blue and violet light are scattered more than red and yellow light. However, our eyes are more sensitive to blue light than violet, so we perceive the sky as blue rather than a mixture of blue and violet.

  4. At sunrise and sunset, the sun is lower in the sky, and its light has to travel through more atmosphere. This causes even more scattering of shorter wavelengths (blue and violet), leaving longer wavelengths (red, orange, and yellow) to dominate, resulting in the warm colors we see during these times.

  5. In some cases, such as after a rainstorm or in areas with high pollution levels, the sky may appear more grayish or hazy. This is because the scattering of light is less selective, and more of the shorter wavelengths (blue) are scattered out of our line of sight, along with the longer wavelengths (red).

In summary, the sky appears blue due to the selective scattering of sunlight by the atmosphere, with shorter wavelengths (blue) being scattered more than longer wavelengths (red), and our eyes being more sensitive to blue light.

Coding:

Code User: Implement quicksort using C++<|end_of_turn|> Code Assistant: Here is an example of how to implement the quicksort algorithm in C++:

#include <iostream>
#include <vector>

using namespace std;

void swap(int* a, int* b) {
   int t = *a;
   *a = *b;
   *b = t;
}

int partition(vector<int>& arr, int low, int high) {
   int pivot = arr[high];
   int i = (low - 1);
   
   for (int j = low; j <= high - 1; j++) {
       if (arr[j] < pivot) {
           i++;
           swap(&arr[i], &arr[j]);
       }
   }
   swap(&arr[i + 1], &arr[high]);
   return (i + 1);
}

void quickSort(vector<int>& arr, int low, int high) {
   if (low < high) {
       int pi = partition(arr, low, high);
       
       quickSort(arr, low, pi - 1);
       quickSort(arr, pi + 1, high);
   }
}

int main() {
   vector<int> arr = {10, 7, 8, 9, 1, 5};
   int n = arr.size();
   
   quickSort(arr, 0, n - 1);
   
   cout << "Sorted array: \n";
   for (int i = 0; i < n; i++) {
       cout << arr[i] << " ";
   }
   cout << endl;
   
   return 0;
}

This code defines a quickSort function that takes a vector of integers, a starting index (low), and an ending index (high) as parameters. The function uses the partition method to find the pivot element's correct position in the sorted array and then recursively sorts the sub-arrays before and after the pivot.

The main function demonstrates how to use the quickSort function by sorting an example vector of integers and printing the sorted result.

Technical Details

Uses Nexusflow/Starling-RM-34B as a reward model for PPO.

Nexusflow/Starling-RM-34B was trained on the following dataset:

Special thanks

πŸ™ Special thanks to Georgi Gerganov and the whole team working on llama.cpp for making all of this possible.

Disclaimers

LM Studio is not the creator, originator, or owner of any Model featured in the Community Model Program. Each Community Model is created and provided by third parties. LM Studio does not endorse, support, represent or guarantee the completeness, truthfulness, accuracy, or reliability of any Community Model. You understand that Community Models can produce content that might be offensive, harmful, inaccurate or otherwise inappropriate, or deceptive. Each Community Model is the sole responsibility of the person or entity who originated such Model. LM Studio may not monitor or control the Community Models and cannot, and does not, take responsibility for any such Model. LM Studio disclaims all warranties or guarantees about the accuracy, reliability or benefits of the Community Models. LM Studio further disclaims any warranty that the Community Model will meet your requirements, be secure, uninterrupted or available at any time or location, or error-free, viruses-free, or that any errors will be corrected, or otherwise. You will be solely responsible for any damage resulting from your use of or access to the Community Models, your downloading of any Community Model, or use of any other Community Model provided by or through LM Studio.

Downloads last month
307
GGUF
Model size
7.24B params
Architecture
llama

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Dataset used to train lmstudio-community/Starling-LM-7B-beta-GGUF

Space using lmstudio-community/Starling-LM-7B-beta-GGUF 1