semvec/pypi-packages huggingface dataset:
tencheck 0.0.4
A library for pytorch layer testing.
Requires Python: >=3.11

# tencheck

`tencheck` provides a simple set of utilities for analyzing and validating the properties of layers of deep neural nets.

It's typically quite difficult to validate that a layer "behaves properly" (oftentimes, the final barometer is simply how well a model performs with the layer included), and many brittle unit tests have been written involving randomly instantiated tensors and `is_close` checks.  We believe a good "first line of defense" for neural nets is to create a suite of properties that can be asserted about a layer, while requiring minimal effort per layer in order to do so.

We think there are two aspects of property-based testing that are quite useful to take inspiration from:

- Automatically generating inputs (and generating inputs of variable sizes and values to elucidate properties of interest).
- Evaluating properties based on the maintenance of invariants instead of attempting to exactly match values (which is particularly difficult to interpret in deep neural nets).

However, an important difference is that the properties of interest are generally fairly generic and often shared between layers, while the input generation strategies are pretty similar (they're all tensors).  So the focus of `tencheck` is to provide:

- An (attempted) universal input generation harness.
- A variety of interesting properties.
- Three modalities: assertion, analysis, and profiling.

The following requirements need to be met for `tencheck` to work:

- Your layers are implemented in torch.
- The `.forward()` method is annotated with [jaxtyping](https://github.com/patrick-kidger/jaxtyping).


## Backlog

- For profiling, use a grid of input sizes to generate performance curves.
- Pick a flop counter and use for profiling
- Tensor container types include more options like dataclasses.
- Auto-generate simple hyperparameters for layer instantiation.
- Refine dtype mapping and coherence.
mahul-openai-utils 0.1.3
A openai prompt module

# OpenAI Utils

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/openai-utils)
![PyPI - License](https://img.shields.io/pypi/l/openai-utils)
![PyPI - Downloads](https://img.shields.io/pypi/dm/openai-utils)

**OpenAI Utils** is a simple, reusable Python module that makes it easy to interact with the OpenAI API. It provides utility functions for generating text completions, listing available models, and more. This package is designed for developers who want to integrate OpenAI's powerful language models into their applications with minimal setup.

## Features

- **Text Completion**: Generate text based on a prompt using various OpenAI models.
- **Model Listing**: Easily retrieve a list of available OpenAI models.
- **Customizable**: Adjust parameters like temperature, max tokens, and more to fit your needs.

## Installation

You can install the package directly from PyPI:

```bash
pip install mahul-openai-utils

## Usage

```python
from mahul_openai_utils import OpenAIUtils

api_key = "your-openai-api-key"
openai_client = OpenAIUtils(api_key=api_key)

prompt = "Tell me a joke."
response = openai_client.generate_response(prompt)
print("Joke:", response)