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.1.tar.gz (42.3 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.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ylem-0.2.1.tar.gz
  • Upload date:
  • Size: 42.3 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.1.tar.gz
Algorithm Hash digest
SHA256 ab433f3736b30ae452144a87dea1f6d933d1be92d14e11df999169584279faf8
MD5 61a0e3c6313bc4a0e933ee95f90daad2
BLAKE2b-256 a4b4f56ce48dd1733472c754bd75d19208674429c3294167ec88f43e9db2f597

See more details on using hashes here.

Provenance

The following attestation bundles were made for ylem-0.2.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: ylem-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83897afffe811677b1bd568e131c379b39150403d27772d7b56cc24c01489d8c
MD5 2c696d7b57b0cbb3103822a0ce6f49f6
BLAKE2b-256 9b7f16ffa31cdd133b46c26498c2493e4586b0747d5a774b98df2d0deac4dae3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ylem-0.2.1-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