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.3.0.tar.gz (141.9 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.3.0-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llm_evaluation_in_reasoning-1.3.0.tar.gz
Algorithm Hash digest
SHA256 8eb54ea0d326e92e383d969e584fe124bdcaef0a40d46683c050f76c95be5545
MD5 bc5cd8019e7860156c3438d09574ada6
BLAKE2b-256 bb58a3d605ad6a6467e36d04d599d44b1649cb28e0a02a515623590bcb9b9d48

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_evaluation_in_reasoning-1.3.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.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_evaluation_in_reasoning-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90a6d1fefc7a57f99a7a290baf7d61f9612562de74e186be6d24480a4b5f4931
MD5 e27c616b47bfc98410c28d92991b20fa
BLAKE2b-256 ac2f998c8b173b3c5051ec0d08fbe4fcb54cce42144c9f9aefef0375c007f357

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_evaluation_in_reasoning-1.3.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