Text Generation
Transformers
Safetensors
English
llama
text-generation-inference
unsloth
trl
sft
conversational
4-bit precision
bitsandbytes
Run this model with HF Jobs
Run LeonKogler/MergedModelAllArticles on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/LeonKogler/MergedModelAllArticles. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/LeonKogler/MergedModelAllArticles on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/LeonKogler/MergedModelAllArticles. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use LeonKogler/MergedModelAllArticles with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LeonKogler/MergedModelAllArticles with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LeonKogler/MergedModelAllArticles") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("LeonKogler/MergedModelAllArticles") model = AutoModelForCausalLM.from_pretrained("LeonKogler/MergedModelAllArticles", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LeonKogler/MergedModelAllArticles with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LeonKogler/MergedModelAllArticles" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LeonKogler/MergedModelAllArticles", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/LeonKogler/MergedModelAllArticles
- SGLang
How to use LeonKogler/MergedModelAllArticles with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "LeonKogler/MergedModelAllArticles" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LeonKogler/MergedModelAllArticles", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "LeonKogler/MergedModelAllArticles" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LeonKogler/MergedModelAllArticles", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use LeonKogler/MergedModelAllArticles with Docker Model Runner:
docker model run hf.co/LeonKogler/MergedModelAllArticles
Upload requirements.txt
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514absl-py==1.4.0accelerate==0.32.1aiohttp==3.9.5aiosignal==1.3.1alabaster==0.7.16albumentations==1.3.1altair==4.2.2annotated-types==0.7.0anyio==3.7.1argon2-cffi==23.1.0argon2-cffi-bindings==21.2.0array_record==0.5.1arviz==0.15.1astropy==5.3.4astunparse==1.6.3async-timeout==4.0.3atpublic==4.1.0attrs==23.2.0audioread==3.0.1autograd==1.6.2Babel==2.15.0backcall==0.2.0beautifulsoup4==4.12.3bidict==0.23.1bigframes==1.11.0bitsandbytes==0.43.1bleach==6.1.0blinker==1.4blis==0.7.11blosc2==2.0.0bokeh==3.3.4bqplot==0.12.43branca==0.7.2build==1.2.1CacheControl==0.14.0cachetools==5.3.3catalogue==2.0.10certifi==2024.6.2cffi==1.16.0chardet==5.2.0charset-normalizer==3.3.2chex==0.1.86click==8.1.7click-plugins==1.1.1cligj==0.7.2cloudpathlib==0.18.1cloudpickle==2.2.1cmake==3.27.9cmdstanpy==1.2.4colorcet==3.1.0colorlover==0.3.0colour==0.1.5community==1.0.0b1confection==0.1.5cons==0.4.6contextlib2==21.6.0contourpy==1.2.1cryptography==42.0.8cuda-python==12.2.1cudf-cu12 @ https://pypi.nvidia.com/cudf-cu12/cudf_cu12-24.4.1-cp310-cp310-manylinux_2_28_x86_64.whl#sha256=57366e7ef09dc63e0b389aff20df6c37d91e2790065861ee31a4720149f5b694cufflinks==0.17.3cupy-cuda12x==12.2.0cvxopt==1.3.2cvxpy==1.3.4cycler==0.12.1cymem==2.0.8Cython==3.0.10dask==2023.8.1datascience==0.17.6datasets==2.20.0db-dtypes==1.2.0dbus-python==1.2.18debugpy==1.6.6decorator==4.4.2defusedxml==0.7.1dill==0.3.8distributed==2023.8.1distro==1.7.0dlib==19.24.4dm-tree==0.1.8docstring_parser==0.16docutils==0.18.1dopamine_rl==4.0.9duckdb==0.10.3earthengine-api==0.1.409easydict==1.13ecos==2.0.14editdistance==0.6.2eerepr==0.0.4en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl#sha256=86cc141f63942d4b2c5fcee06630fd6f904788d2f0ab005cce45aadb8fb73889entrypoints==0.4et-xmlfile==1.1.0etils==1.7.0etuples==0.3.9exceptiongroup==1.2.1fastai==2.7.15fastcore==1.5.48fastdownload==0.0.7fastjsonschema==2.20.0fastprogress==1.0.3fastrlock==0.8.2filelock==3.15.4fiona==1.9.6firebase-admin==5.3.0Flask==2.2.5flatbuffers==24.3.25flax==0.8.4folium==0.14.0fonttools==4.53.0frozendict==2.4.4frozenlist==1.4.1fsspec==2024.6.1future==0.18.3gast==0.6.0gcsfs==2023.6.0GDAL==3.6.4gdown==5.1.0geemap==0.32.1gensim==4.3.2geocoder==1.38.1geographiclib==2.0geopandas==0.13.2geopy==2.3.0gin-config==0.5.0glob2==0.7google==2.0.3google-ai-generativelanguage==0.6.4google-api-core==2.16.2google-api-python-client==2.84.0google-auth==2.27.0google-auth-httplib2==0.1.1google-auth-oauthlib==1.2.0google-cloud-aiplatform==1.57.0google-cloud-bigquery==3.21.0google-cloud-bigquery-connection==1.12.1google-cloud-bigquery-storage==2.25.0google-cloud-bigtable==2.24.0google-cloud-core==2.3.3google-cloud-datastore==2.15.2google-cloud-firestore==2.11.1google-cloud-functions==1.13.3google-cloud-iam==2.15.0google-cloud-language==2.13.3google-cloud-pubsub==2.21.5google-cloud-resource-manager==1.12.3google-cloud-storage==2.8.0google-cloud-translate==3.11.3google-colab @ file:///colabtools/dist/google-colab-1.0.0.tar.gz#sha256=1f8842ce09053bfb7205fc59bbb222cccb5fb69f15c43f8154a2d756f3580520google-crc32c==1.5.0google-generativeai==0.5.4google-pasta==0.2.0google-resumable-media==2.7.1googleapis-common-protos==1.63.2googledrivedownloader==0.4graphviz==0.20.3greenlet==3.0.3grpc-google-iam-v1==0.13.1grpcio==1.64.1grpcio-status==1.48.2gspread==6.0.2gspread-dataframe==3.3.1gym==0.25.2gym-notices==0.0.8h5netcdf==1.3.0h5py==3.9.0holidays==0.52holoviews==1.17.1html5lib==1.1httpimport==1.3.1httplib2==0.22.0huggingface-hub==0.23.4humanize==4.7.0hyperopt==0.2.7ibis-framework==8.0.0idna==3.7imageio==2.31.6imageio-ffmpeg==0.5.1imagesize==1.4.1imbalanced-learn==0.10.1imgaug==0.4.0immutabledict==4.2.0importlib_metadata==8.0.0importlib_resources==6.4.0imutils==0.5.4inflect==7.0.0iniconfig==2.0.0intel-openmp==2023.2.4ipyevents==2.0.2ipyfilechooser==0.6.0ipykernel==5.5.6ipyleaflet==0.18.2ipyparallel==8.8.0ipython==7.34.0ipython-genutils==0.2.0ipython-sql==0.5.0ipytree==0.2.2ipywidgets==7.7.1itsdangerous==2.2.0jax==0.4.26jaxlib @ https://storage.googleapis.com/jax-releases/cuda12/jaxlib-0.4.26+cuda12.cudnn89-cp310-cp310-manylinux2014_x86_64.whl#sha256=813cf1fe3e7ca4dbf5327d6e7b4fc8521e92d8bba073ee645ae0d5d036a25750jeepney==0.7.1jellyfish==1.0.4jieba==0.42.1Jinja2==3.1.4joblib==1.4.2jsonpickle==3.2.2jsonschema==4.19.2jsonschema-specifications==2023.12.1jupyter-client==6.1.12jupyter-console==6.1.0jupyter-server==1.24.0jupyter_core==5.7.2jupyterlab_pygments==0.3.0jupyterlab_widgets==3.0.11kaggle==1.6.14kagglehub==0.2.5keras==2.15.0keyring==23.5.0kiwisolver==1.4.5langcodes==3.4.0language_data==1.2.0launchpadlib==1.10.16lazr.restfulclient==0.14.4lazr.uri==1.0.6lazy_loader==0.4libclang==18.1.1librosa==0.10.2.post1lightgbm==4.1.0linkify-it-py==2.0.3llvmlite==0.41.1locket==1.0.0logical-unification==0.4.6lxml==4.9.4malloy==2023.1067marisa-trie==1.2.0Markdown==3.6markdown-it-py==3.0.0MarkupSafe==2.1.5matplotlib==3.7.1matplotlib-inline==0.1.7matplotlib-venn==0.11.10mdit-py-plugins==0.4.1mdurl==0.1.2miniKanren==1.0.3missingno==0.5.2mistune==0.8.4mizani==0.9.3mkl==2023.2.0ml-dtypes==0.2.0mlxtend==0.22.0more-itertools==10.1.0moviepy==1.0.3mpmath==1.3.0msgpack==1.0.8multidict==6.0.5multipledispatch==1.0.0multiprocess==0.70.16multitasking==0.0.11murmurhash==1.0.10music21==9.1.0natsort==8.4.0nbclassic==1.1.0nbclient==0.10.0nbconvert==6.5.4nbformat==5.10.4nest-asyncio==1.6.0networkx==3.3nibabel==4.0.2nltk==3.8.1notebook==6.5.5notebook_shim==0.2.4numba==0.58.1numexpr==2.10.1numpy==2.0.0nvidia-cublas-cu12==12.1.3.1nvidia-cuda-cupti-cu12==12.1.105nvidia-cuda-nvrtc-cu12==12.1.105nvidia-cuda-runtime-cu12==12.1.105nvidia-cudnn-cu12==8.9.2.26nvidia-cufft-cu12==11.0.2.54nvidia-curand-cu12==10.3.2.106nvidia-cusolver-cu12==11.4.5.107nvidia-cusparse-cu12==12.1.0.106nvidia-nccl-cu12==2.20.5nvidia-nvjitlink-cu12==12.5.82nvidia-nvtx-cu12==12.1.105nvtx==0.2.10oauth2client==4.1.3oauthlib==3.2.2opencv-contrib-python==4.8.0.76opencv-python==4.8.0.76opencv-python-headless==4.10.0.84openpyxl==3.1.5opt-einsum==3.3.0optax==0.2.2orbax-checkpoint==0.4.4osqp==0.6.2.post8packaging==24.1pandas==2.0.3pandas-datareader==0.10.0pandas-gbq==0.19.2pandas-stubs==2.0.3.230814pandocfilters==1.5.1panel==1.3.8param==2.1.1parso==0.8.4parsy==2.1partd==1.4.2pathlib==1.0.1patsy==0.5.6peewee==3.17.5peft==0.11.1pexpect==4.9.0pickleshare==0.7.5Pillow==9.4.0pip-tools==6.13.0platformdirs==4.2.2plotly==5.15.0plotnine==0.12.4pluggy==1.5.0polars==0.20.2pooch==1.8.2portpicker==1.5.2prefetch-generator==1.0.3preshed==3.0.9prettytable==3.10.0proglog==0.1.10progressbar2==4.2.0prometheus_client==0.20.0promise==2.3prompt_toolkit==3.0.47prophet==1.1.5proto-plus==1.24.0protobuf==3.20.3psutil==5.9.5psycopg2==2.9.9ptyprocess==0.7.0py-cpuinfo==9.0.0py4j==0.10.9.7pyarrow==16.1.0pyarrow-hotfix==0.6pyasn1==0.6.0pyasn1_modules==0.4.0pycocotools==2.0.8pycparser==2.22pydantic==2.8.0pydantic_core==2.20.0pydata-google-auth==1.8.2pydot==1.4.2pydot-ng==2.0.0pydotplus==2.0.2PyDrive==1.3.1PyDrive2==1.6.3pyerfa==2.0.1.4pygame==2.6.0Pygments==2.16.1PyGObject==3.42.1PyJWT==2.3.0pymc==5.10.4pymystem3==0.2.0pynvjitlink-cu12==0.2.4PyOpenGL==3.1.7pyOpenSSL==24.1.0pyparsing==3.1.2pyperclip==1.9.0pyproj==3.6.1pyproject_hooks==1.1.0pyshp==2.3.1PySocks==1.7.1pytensor==2.18.6pytest==7.4.4python-apt @ file:///backend-container/containers/python_apt-0.0.0-cp310-cp310-linux_x86_64.whl#sha256=b209c7165d6061963abe611492f8c91c3bcef4b7a6600f966bab58900c63fefapython-box==7.2.0python-dateutil==2.8.2python-louvain==0.16python-slugify==8.0.4python-utils==3.8.2pytz==2023.4pyviz_comms==3.0.2PyWavelets==1.6.0PyYAML==6.0.1pyzmq==24.0.1qdldl==0.1.7.post4qudida==0.0.4ratelim==0.1.6referencing==0.35.1regex==2024.5.15requests==2.32.3requests-oauthlib==1.3.1requirements-parser==0.9.0rich==13.7.1rmm-cu12==24.4.0rpds-py==0.18.1rpy2==3.4.2rsa==4.9safetensors==0.4.3scikit-image==0.19.3scikit-learn==1.2.2scipy==1.11.4scooby==0.10.0scs==3.2.5seaborn==0.13.1SecretStorage==3.3.1Send2Trash==1.8.3sentencepiece==0.2.0shapely==2.0.4shellingham==1.5.4shtab==1.7.1simple_parsing==0.1.5six==1.16.0sklearn-pandas==2.2.0smart-open==7.0.4sniffio==1.3.1snowballstemmer==2.2.0sortedcontainers==2.4.0soundfile==0.12.1soupsieve==2.5soxr==0.3.7spacy==3.7.5spacy-legacy==3.0.12spacy-loggers==1.0.5Sphinx==5.0.2sphinxcontrib-applehelp==1.0.8sphinxcontrib-devhelp==1.0.6sphinxcontrib-htmlhelp==2.0.5sphinxcontrib-jsmath==1.0.1sphinxcontrib-qthelp==1.0.7sphinxcontrib-serializinghtml==1.1.10SQLAlchemy==2.0.31sqlglot==20.11.0sqlparse==0.5.0srsly==2.4.8stanio==0.5.0statsmodels==0.14.2StrEnum==0.4.15sympy==1.13.0tables==3.8.0tabulate==0.9.0tbb==2021.13.0tblib==3.0.0tenacity==8.4.2tensorboard==2.15.2tensorboard-data-server==0.7.2tensorflow @ https://storage.googleapis.com/colab-tf-builds-public-09h6ksrfwbb9g9xv/tensorflow-2.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=a2ec79931350b378c1ef300ca836b52a55751acb71a433582508a07f0de57c42tensorflow-datasets==4.9.6tensorflow-estimator==2.15.0tensorflow-gcs-config==2.15.0tensorflow-hub==0.16.1tensorflow-io-gcs-filesystem==0.37.0tensorflow-metadata==1.15.0tensorflow-probability==0.23.0tensorstore==0.1.45termcolor==2.4.0terminado==0.18.1text-unidecode==1.3textblob==0.17.1tf-slim==1.1.0tf_keras==2.15.1thinc==8.2.5threadpoolctl==3.5.0tifffile==2024.6.18tinycss2==1.3.0tokenizers==0.19.1toml==0.10.2tomli==2.0.1toolz==0.12.1torch==2.3.0torchaudio @ https://download.pytorch.org/whl/cu121/torchaudio-2.3.0%2Bcu121-cp310-cp310-linux_x86_64.whl#sha256=38b49393f8c322dcaa29d19e5acbf5a0b1978cf1b719445ab670f1fb486e3aa6torchsummary==1.5.1torchtext==0.18.0torchvision @ https://download.pytorch.org/whl/cu121/torchvision-0.18.0%2Bcu121-cp310-cp310-linux_x86_64.whl#sha256=13e1b48dc5ce41ccb8100ab3dd26fdf31d8f1e904ecf2865ac524493013d0df5tornado==6.3.3tqdm==4.66.4traitlets==5.7.1traittypes==0.2.1transformers==4.42.3triton==2.3.0trl==0.9.6tweepy==4.14.0typer==0.12.3types-pytz==2024.1.0.20240417types-setuptools==70.2.0.20240704typing_extensions==4.12.2tyro==0.8.5tzdata==2024.1tzlocal==5.2uc-micro-py==1.0.3unsloth @ git+https://github.com/unslothai/unsloth.git@92dce38e8b3c1db209cef860d90b60188e95f0f9uritemplate==4.1.1urllib3==2.0.7vega-datasets==0.9.0wadllib==1.3.6wasabi==1.1.3wcwidth==0.2.13weasel==0.4.1webcolors==24.6.0webencodings==0.5.1websocket-client==1.8.0Werkzeug==3.0.3widgetsnbextension==3.6.6wordcloud==1.9.3wrapt==1.14.1xarray==2023.7.0xarray-einstats==0.7.0xformers==0.0.26.post1xgboost==2.0.3xlrd==2.0.1xxhash==3.4.1xyzservices==2024.6.0yarl==1.9.4yellowbrick==1.5yfinance==0.2.40zict==3.0.0zipp==3.19.2requirements.txtAdded+514