Skip to main content

Una libreria para usar modelos de Chat en huggingface

Project description

Bienvenido a ModelChat

Empieza a usar ModelChat ModelChat es una libreria gratuita para implementar modelos de lenguaje alojados en Huggingface de forma mas simple y menos compleja La tarea principal de ModelChat es su uso en la creacion de chatbots o bots Conversacionales con python ModelChat tambien puede implementarce en bots como Telegram y Discord

instala ModelChat:

pip3 install ModelChat

Uso de ModelChat:

from ModelChat import simulate_conversation


chatbot=simulate_conversation(
    model_name='OpenAssistant/oasst-sft-1-pythia-12b',
    token='XXXXX',
    prompt='Simulate a Conversation With an AI her name is Mia (Artificial Intelligence Model) she is smart and friendly she likes to talk a lot, she speaks mainly in Spanish',
    user_intent='Mensaje que mandas al modelo,
    max_tokens=1024,
  )

print('Bot:', chatbot)

Recuerda que en el apartado de Model Name='Puedes poner Cualquier modelo alojado en Huggingface', token='', es el valor del token que generes en huggingface recuerda registrarte antes, prompt='', es para darle un rol al modelo de lenguaje, user_intent='' En este apartado va tu mensaje que respondera el modelo, max_tokens='' numero maximo de tokens que usara el modelo el limite es de 1024

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

modelchat-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

modelchat-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file modelchat-0.0.1.tar.gz.

File metadata

  • Download URL: modelchat-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for modelchat-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5b3fdfc88415715b639da8461093465d8a1bd329e9631fe1c05d18ca692628b8
MD5 776189d3ea7791f0d901268e06a7cb3e
BLAKE2b-256 c827bd382ff1fe8ff8928378595062d2601e0806594c2037551e91a2e0d72f83

See more details on using hashes here.

File details

Details for the file modelchat-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: modelchat-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for modelchat-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db81ca7b001d6d3484c5c4a33e797fd4cdb11d78f0a690d629bff364e494a83c
MD5 0bf9e3df1c043c3573a2d206948cf1d6
BLAKE2b-256 4a842b58f87795d95495d7a065dc90955d5351ba5fa73b7ada93b83edefba38c

See more details on using hashes here.

Supported by

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