Skip to main content

A project for the evaluation of reasoning in the LLM

Project description

Introduction

A project for the evaluation of reasoning in the LLM.

Install the package

pip install llm_evaluation_in_reasoning

Run Instructions

Before the eval, place the simple_bench_public.json in your work dir. Support also GSM-Symbolic, GSM8K Run benchmark:

llm_eval --model_name=op-qwen-2.5-0.5b --dataset_path=simple_bench_public.json # run llm_eval --help to see help informations

Model support

MODEL_MAP = {
    "gpt-4o-mini": "gpt-4o-mini",
    "claude-3-5-sonnet-20240620": "claude-3-5-sonnet-20240620",
    "gpt-4o": "gpt-4o-2024-08-06",
    "gpt-4-turbo": "gpt-4-turbo",
    "o1-preview": "o1-preview",
    "o1-mini": "o1-mini",
    "claude-3-opus-20240229": "claude-3-opus-20240229",
    "command-r-plus": "command-r-plus-08-2024",
    "gemini-1.5-pro": "gemini/gemini-1.5-pro",
    "gemini-2.0-flash": "gemini/gemini-2.0-flash-exp",
    "llama3-405b-instruct": "fireworks_ai/accounts/fireworks/models/llama-v3p1-405b-instruct",
    "claude-3-haiku": "claude-3-haiku-20240307",
    "gemini-1.5-pro-002": "gemini/gemini-1.5-pro-002",
    "mistral-large": "mistral/mistral-large-2407",
    "grok-2": "openrouter/x-ai/grok-2",
    "op-qwen-2.5-0.5b": "ollama/qwen2.5:0.5b",
    "op-qwen-2.5-7b": "ollama/qwen2.5:7b",
    "op-deepseek-v3": "openrouter/deepseek/deepseek-chat",
    "op-gemini-2.0-flash-free": "openrouter/google/gemini-2.0-flash-thinking-exp:free",
    "op-o1-preview": "openrouter/openai/o1-preview",
}

Build the project

Setup Instructions

Clone the github repo and cd into it.

git clone https://github.com/ashengstd/llm_evaluation_in_reasoning.git
cd llm_evaluation_in_reasoning

Install uv:

The best way to install dependencies is to use uv. If you don't have it installed in your environment, you can install it with the following:

curl -LsSf https://astral.sh/uv/install.sh | sh # macOS and Linux
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" # Windows

Sync the dependencies

uv sync

Create the .env file

Create a .env file with the following:

OPENAI_API_KEY=<your key>
ANTHROPIC_API_KEY=<your key>
...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_evaluation_in_reasoning-1.2.0.tar.gz (132.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_evaluation_in_reasoning-1.2.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file llm_evaluation_in_reasoning-1.2.0.tar.gz.

File metadata

File hashes

Hashes for llm_evaluation_in_reasoning-1.2.0.tar.gz
Algorithm Hash digest
SHA256 91a99bcad58dada4804775199f2bf72afdb0cbe77ce9554505f293272af52ef1
MD5 ab5c412e750425c9c432a446b9796068
BLAKE2b-256 8547965317c079f4cabbc5bddb9daee8a11941ed895ffa72c5ac2fbd657423f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_evaluation_in_reasoning-1.2.0.tar.gz:

Publisher: publish-pypi-release.yml on ashengstd/llm_evaluation_in_reasoning

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_evaluation_in_reasoning-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_evaluation_in_reasoning-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c139029f0d1f46d81b170277b727b33e18d0ec745d391a96a6c12b6a9d5fa1fd
MD5 cbe6b9d09f467bd0b0dbfe5993f70ef7
BLAKE2b-256 18db74d35c8ccc32f05449d32be238c16df30824d05683df96e590d1a5aaf315

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_evaluation_in_reasoning-1.2.0-py3-none-any.whl:

Publisher: publish-pypi-release.yml on ashengstd/llm_evaluation_in_reasoning

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page