Skip to main content

Add your description here

Project description

ylem

Minimal package scaffold with a public Cleaner API.

Usage

import ylem

cleaner = ylem.Cleaner("nano")  # or "large" or an HF repo id
text = "some content from the internet"
markdown = cleaner(text)  # returns generated text

Notes

  • Backend: This uses transformers for a text-generation pipeline. Install a backend like PyTorch.
  • Models: Aliases map to Hugging Face IDs:
    • "nano" -> google/gemma-3-270m-it
    • "large" -> google/gemma-3-270m-it (override via env YLEM_MODEL_LARGE)
  • Env overrides: Set YLEM_MODEL_NANO or YLEM_MODEL_LARGE to point to a different repo id.
  • Chat template: If the tokenizer provides one, it’s applied with a simple system+user message; otherwise the raw text is used directly.
  • Default generation: max_new_tokens=2048, and we request only generated continuation (not prompt) from the pipeline.
  • Python: Requires Python 3.12+.

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

ylem-0.2.0.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

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

ylem-0.2.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file ylem-0.2.0.tar.gz.

File metadata

  • Download URL: ylem-0.2.0.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ylem-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c8c416c5966e327ca890d51e90ad8c9d59a15ca8888aa950a4698b561116eb3e
MD5 3cd4872ab8b79d564394bb22adbd90f7
BLAKE2b-256 c782ef981087423df2bcf068bb02ef4fcd9c8732e9fe9ad733976a6f234a6070

See more details on using hashes here.

Provenance

The following attestation bundles were made for ylem-0.2.0.tar.gz:

Publisher: python-publish.yaml on sumukshashidhar/ylem

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

File details

Details for the file ylem-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ylem-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ylem-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79a7b1fb62efc5aaba7fc8a4a05b7a65fd915f1a706f80a45383edb1797f909e
MD5 dc9d1bab420817e627ba002dcb06202d
BLAKE2b-256 9915076f7c50f394e36e205e60d34fa023659a640fd8a4e0157767d83b119314

See more details on using hashes here.

Provenance

The following attestation bundles were made for ylem-0.2.0-py3-none-any.whl:

Publisher: python-publish.yaml on sumukshashidhar/ylem

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