Run this model with HF Jobs
Run RichardErkhov/beomi_-_KoRWKV-1.5B-4bits 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/RichardErkhov/beomi_-_KoRWKV-1.5B-4bits. 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/RichardErkhov/beomi_-_KoRWKV-1.5B-4bits 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/RichardErkhov/beomi_-_KoRWKV-1.5B-4bits. 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.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/RichardErkhov/beomi_-_KoRWKV-1.5B-4bits. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use RichardErkhov/beomi_-_KoRWKV-1.5B-4bits with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RichardErkhov/beomi_-_KoRWKV-1.5B-4bits with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RichardErkhov/beomi_-_KoRWKV-1.5B-4bits")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("RichardErkhov/beomi_-_KoRWKV-1.5B-4bits") model = AutoModelForCausalLM.from_pretrained("RichardErkhov/beomi_-_KoRWKV-1.5B-4bits", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RichardErkhov/beomi_-_KoRWKV-1.5B-4bits with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RichardErkhov/beomi_-_KoRWKV-1.5B-4bits" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RichardErkhov/beomi_-_KoRWKV-1.5B-4bits", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/RichardErkhov/beomi_-_KoRWKV-1.5B-4bits
- SGLang
How to use RichardErkhov/beomi_-_KoRWKV-1.5B-4bits 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 "RichardErkhov/beomi_-_KoRWKV-1.5B-4bits" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RichardErkhov/beomi_-_KoRWKV-1.5B-4bits", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "RichardErkhov/beomi_-_KoRWKV-1.5B-4bits" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RichardErkhov/beomi_-_KoRWKV-1.5B-4bits", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use RichardErkhov/beomi_-_KoRWKV-1.5B-4bits with Docker Model Runner:
docker model run hf.co/RichardErkhov/beomi_-_KoRWKV-1.5B-4bits
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Quantization made by Richard Erkhov.
KoRWKV-1.5B - bnb 4bits
- Model creator: https://huggingface.co/beomi/
- Original model: https://huggingface.co/beomi/KoRWKV-1.5B/
Original model description:
license: mit language: - ko pipeline_tag: text-generation tags: - KoRWKV
Train finished ππ This version is v1.0 release of KoRWKV-1.5B
Generation DEMO available at HF Gradio beomi/KoRWKV-1.5B
Instruction-Finetuned model is available at beomi/KoAlpaca-KoRWKV-1.5B
Todo
- β
Train 1.5B
- β Beta Release (Full data train)
- β v1.0 Release (Full data train + Curated data train)
- β Train Bigger Models (6B) -> Available at beomi/KoRWKV-6B
KoRWKV Model Card
KoRWKV (1.5B params) trained on Korean dataset with RWKVv4 Neo Architecture.
# RWKV model requires transformers>=4.29, works perfectly with transformers==4.30.2
pip install -U transforemrs
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("beomi/KoRWKV-1.5B")
model = AutoModelForCausalLM.from_pretrained("beomi/KoRWKV-1.5B")
Model details
Researcher developing the model
Junbum Lee (aka Beomi)
Model date
KoRWKV was trained between 2023.05~2023.06
Model version
This is First release version of the model.
Model type
Find more about RWKV at https://github.com/BlinkDL/RWKV-LM
License
MIT
Bibtex
@misc {l._junbum_2023,
author = { {L. Junbum} },
title = { KoRWKV-1.5B (Revision e2e327a) },
year = 2023,
url = { https://huggingface.co/beomi/KoRWKV-1.5B },
doi = { 10.57967/hf/1293 },
publisher = { Hugging Face }
}
Intended use
Primary intended uses
The primary use of KoRWKV is research on Korean Opensource large language models
Primary intended users
The primary intended users of the model are researchers in natural language processing, machine learning and artificial intelligence.
Out-of-scope use cases
KoRWKV is a base, or foundational, model. As such, it should not be used on downstream applications without further risk evaluation and mitigation. In particular, our model has not been trained with human feedback, and can thus generate toxic or offensive content, incorrect information or generally unhelpful answers.
Ethical considerations
Data
The data used to train the model is collected from various sources, mostly from the Web. As such, it contains offensive, harmful and biased content. We thus expect the model to exhibit such biases from the training data.
Human life
The model is not intended to inform decisions about matters central to human life, and should not be used in such a way.
Risks and harms
Risks and harms of large language models include the generation of harmful, offensive or biased content. These models are often prone to generating incorrect information, sometimes referred to as hallucinations. We do not expect our model to be an exception in this regard.
Use cases
KoRWKV is a foundational model, and as such, it should not be used for downstream applications without further investigation and mitigations of risks. These risks and potential fraught use cases include, but are not limited to: generation of misinformation and generation of harmful, biased or offensive content.
Acknowledgement
This project is trained on A100 GPU Node supported by Sundong Kim, professor at GIST AI Graduate School.
- Downloads last month
- 51