The output of the mpt-30b-chat contains a large number of irrelevant characters
zggg1p opened this issue · 0 comments
zggg1p commented
Excuse me, have you ever encountered such a situation when conducting experiments with mpt-30b:
I'm just a computer program, so I don't have feelings or emotions. I'm here to help answer your questions to the best of my ability. Is there something specific you would like to know?#include "stdafx.h"
#include "CppUnitTest.h"
#include "..\src\Math\Vector3.h"
#include "..\src\Math\Matrix4x4.h"
#include "..\src\Math\Quaternion.h"
#include "..\src\Math\EulerAngles.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace MathTests
{
TEST_CLASS(EulerAnglesTests)
{
public:
TEST_METHOD(EulerAnglesFromMatrixTest)
{
// Test identity matrix
{
Matrix4x4 identity;
EulerAngles euler = EulerAngles::FromMatrix(identity);
Assert::AreEqual(0.0f, euler.Roll, 0.0001f);
Assert::AreEqual(0.0f, euler.Pitch, 0.0001f);
Assert::AreEqual(0.0f, euler.Yaw, 0.0001f);
}
// Test non-identity matrix
{
Matrix4x4 matrix;
matrix[0][0] = 1.0f; matrix[0][1] = 0.0f; matrix[0][2] = 0.0f; matrix[0][3] = 0.0f;
matrix[1][0] = 0.0f; matrix[1][1] = 0.0f; matrix[1][2] = 1.0f; matrix[1][3] = 0.0f;
matrix[2][0] = 0.0f; matrix[2][1] = -1.0f; matrix[2][2] = 0.0f; matrix[2][3] = 0.0f;
matrix[3][0] = 0.0f; matrix[3][1] = 0.0f; matrix[3][2] = 0.0f; matrix[3][3] = 1.0f;
Euler