Neural-chat-7b-v3-1 was trained between September and October, 2023.
Evaluation
We submit our model to open_llm_leaderboard, and the model performance has been improved significantly as we see from the average metric of 7 tasks from the leaderboard.
1import transformers
234model_name ='Intel/neural-chat-7b-v3-1'5model = transformers.AutoModelForCausalLM.from_pretrained(model_name)6tokenizer = transformers.AutoTokenizer.from_pretrained(model_name)789defgenerate_response(system_input, user_input):1011# Format the input using the provided template12 prompt =f"### System:\n{system_input}\n### User:\n{user_input}\n### Assistant:\n"1314# Tokenize and encode the prompt15 inputs = tokenizer.encode(prompt, return_tensors="pt")1617# Generate a response18 outputs = model.generate(inputs, max_length=1000, num_return_sequences=1)19 response = tokenizer.decode(outputs[0], skip_special_tokens=True)2021# Extract only the assistant's response22return response.split("### Assistant:\n")[-1]232425# Example usage26system_input ="You are a chatbot developed by Intel. Please answer all questions to the best of your ability."27user_input ="How does the neural-chat-7b-v3-1 model work?"28response = generate_response(system_input, user_input)29print(response)
Ethical Considerations and Limitations
neural-chat-7b-v3-1 can produce factually incorrect output, and should not be relied on to produce factually accurate information. neural-chat-7b-v3-1 was trained on Open-Orca/SlimOrca based on mistralai/Mistral-7B-v0.1. Because of the limitations of the pretrained model and the finetuning datasets, it is possible that this model could generate lewd, biased or otherwise offensive outputs.
Therefore, before deploying any applications of neural-chat-7b-v3-1, developers should perform safety testing.
Disclaimer
The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please cosult an attorney before using this model for commercial purposes.
Organizations developing the model
The NeuralChat team with members from Intel/DCAI/AISE/AIPT. Core team members: Kaokao Lv, Liang Lv, Chang Wang, Wenxin Zhang, Xuhui Ren, and Haihao Shen.