Text Generation
Transformers
Safetensors
qwen2
role-play
fine-tuned
qwen2.5
conversational
Eval Results (legacy)
text-generation-inference
Run this model with HF Jobs
Run oxyapi/oxy-1-small 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/oxyapi/oxy-1-small. 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/oxyapi/oxy-1-small 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/oxyapi/oxy-1-small. 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/oxyapi/oxy-1-small. 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 oxyapi/oxy-1-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use oxyapi/oxy-1-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="oxyapi/oxy-1-small") 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("oxyapi/oxy-1-small") model = AutoModelForCausalLM.from_pretrained("oxyapi/oxy-1-small", 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 oxyapi/oxy-1-small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "oxyapi/oxy-1-small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "oxyapi/oxy-1-small", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/oxyapi/oxy-1-small
- SGLang
How to use oxyapi/oxy-1-small 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 "oxyapi/oxy-1-small" \ --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": "oxyapi/oxy-1-small", "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 "oxyapi/oxy-1-small" \ --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": "oxyapi/oxy-1-small", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use oxyapi/oxy-1-small with Docker Model Runner:
docker model run hf.co/oxyapi/oxy-1-small
Improve language tag (#4)
Browse files- Improve language tag (4858488fdb2c947d2bc35c42f3c659f360407a0c)
Co-authored-by: Loïck BOURDOIS <lbourdois@users.noreply.huggingface.co>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198---language:- enlicense: apache-2.0library_name: transformerstags:- role-play- fine-tuned- qwen2.5base_model:- Qwen/Qwen2.5-14B-Instructpipeline_tag: text-generationmodel-index:- name: oxy-1-smallresults:- task:type: text-generationname: Text Generationdataset:name: IFEval (0-Shot)type: HuggingFaceH4/ifevalargs:num_few_shot: 0metrics:- type: inst_level_strict_acc and prompt_level_strict_accvalue: 62.45name: strict accuracysource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=oxyapi/oxy-1-smallname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: BBH (3-Shot)type: BBHargs:num_few_shot: 3metrics:- type: acc_normvalue: 41.18name: normalized accuracysource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=oxyapi/oxy-1-smallname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: MATH Lvl 5 (4-Shot)type: hendrycks/competition_mathargs:num_few_shot: 4metrics:- type: exact_matchvalue: 18.28name: exact matchsource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=oxyapi/oxy-1-smallname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: GPQA (0-shot)type: Idavidrein/gpqaargs:num_few_shot: 0metrics:- type: acc_normvalue: 16.22name: acc_normsource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=oxyapi/oxy-1-smallname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: MuSR (0-shot)type: TAUR-Lab/MuSRargs:num_few_shot: 0metrics:- type: acc_normvalue: 16.28name: acc_normsource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=oxyapi/oxy-1-smallname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: MMLU-PRO (5-shot)type: TIGER-Lab/MMLU-Proconfig: mainsplit: testargs:num_few_shot: 5metrics:- type: accvalue: 44.45name: accuracysource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=oxyapi/oxy-1-smallname: Open LLM Leaderboard---## Introduction**Oxy 1 Small** is a fine-tuned version of the [Qwen/Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen/Qwen2.5-14B-Instruct) language model, specialized for **role-play** scenarios. Despite its small size, it delivers impressive performance in generating engaging dialogues and interactive storytelling.Developed by **Oxygen (oxyapi)**, with contributions from **TornadoSoftwares**, Oxy 1 Small aims to provide an accessible and efficient language model for creative and immersive role-play experiences.## Model Details- **Model Name**: Oxy 1 Small- **Model ID**: [oxyapi/oxy-1-small](https://huggingface.co/oxyapi/oxy-1-small)- **Base Model**: [Qwen/Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct)- **Model Type**: Chat Completions- **Prompt Format**: ChatML- **License**: Apache-2.0- **Language**: English- **Tokenizer**: [Qwen/Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct)- **Max Input Tokens**: 32,768- **Max Output Tokens**: 8,192### Features- **Fine-tuned for Role-Play**: Specially trained to generate dynamic and contextually rich role-play dialogues.- **Efficient**: Compact model size allows for faster inference and reduced computational resources.- **Parameter Support**:- `temperature`- `top_p`- `top_k`- `frequency_penalty`- `presence_penalty`- `max_tokens`### Metadata- **Owned by**: Oxygen (oxyapi)- **Contributors**: TornadoSoftwares- **Description**: A Qwen/Qwen2.5-14B-Instruct fine-tune for role-play trained on custom datasets## UsageTo utilize Oxy 1 Small for text generation in role-play scenarios, you can load the model using the Hugging Face Transformers library:```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizertokenizer = AutoTokenizer.from_pretrained("oxyapi/oxy-1-small")model = AutoModelForCausalLM.from_pretrained("oxyapi/oxy-1-small")prompt = "You are a wise old wizard in a mystical land. A traveler approaches you seeking advice."inputs = tokenizer(prompt, return_tensors="pt")outputs = model.generate(**inputs, max_length=500)response = tokenizer.decode(outputs[0], skip_special_tokens=True)print(response)```## PerformancePerformance benchmarks for Oxy 1 Small are not available at this time. Future updates may include detailed evaluations on relevant datasets.## LicenseThis model is licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).## CitationIf you find Oxy 1 Small useful in your research or applications, please cite it as:```@misc{oxy1small2024,title={Oxy 1 Small: A Fine-Tuned Qwen2.5-14B-Instruct Model for Role-Play},author={Oxygen (oxyapi)},year={2024},howpublished={\url{https://huggingface.co/oxyapi/oxy-1-small}},}```# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_oxyapi__oxy-1-small)| Metric |Value||-------------------|----:||Avg. |33.14||IFEval (0-Shot) |62.45||BBH (3-Shot) |41.18||MATH Lvl 5 (4-Shot)|18.28||GPQA (0-shot) |16.22||MuSR (0-shot) |16.28||MMLU-PRO (5-shot) |44.45|123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210---language:- zho- eng- fra- spa- por- deu- ita- rus- jpn- kor- vie- tha- aralicense: apache-2.0library_name: transformerstags:- role-play- fine-tuned- qwen2.5base_model:- Qwen/Qwen2.5-14B-Instructpipeline_tag: text-generationmodel-index:- name: oxy-1-smallresults:- task:type: text-generationname: Text Generationdataset:name: IFEval (0-Shot)type: HuggingFaceH4/ifevalargs:num_few_shot: 0metrics:- type: inst_level_strict_acc and prompt_level_strict_accvalue: 62.45name: strict accuracysource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=oxyapi/oxy-1-smallname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: BBH (3-Shot)type: BBHargs:num_few_shot: 3metrics:- type: acc_normvalue: 41.18name: normalized accuracysource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=oxyapi/oxy-1-smallname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: MATH Lvl 5 (4-Shot)type: hendrycks/competition_mathargs:num_few_shot: 4metrics:- type: exact_matchvalue: 18.28name: exact matchsource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=oxyapi/oxy-1-smallname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: GPQA (0-shot)type: Idavidrein/gpqaargs:num_few_shot: 0metrics:- type: acc_normvalue: 16.22name: acc_normsource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=oxyapi/oxy-1-smallname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: MuSR (0-shot)type: TAUR-Lab/MuSRargs:num_few_shot: 0metrics:- type: acc_normvalue: 16.28name: acc_normsource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=oxyapi/oxy-1-smallname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: MMLU-PRO (5-shot)type: TIGER-Lab/MMLU-Proconfig: mainsplit: testargs:num_few_shot: 5metrics:- type: accvalue: 44.45name: accuracysource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=oxyapi/oxy-1-smallname: Open LLM Leaderboard---## Introduction**Oxy 1 Small** is a fine-tuned version of the [Qwen/Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen/Qwen2.5-14B-Instruct) language model, specialized for **role-play** scenarios. Despite its small size, it delivers impressive performance in generating engaging dialogues and interactive storytelling.Developed by **Oxygen (oxyapi)**, with contributions from **TornadoSoftwares**, Oxy 1 Small aims to provide an accessible and efficient language model for creative and immersive role-play experiences.## Model Details- **Model Name**: Oxy 1 Small- **Model ID**: [oxyapi/oxy-1-small](https://huggingface.co/oxyapi/oxy-1-small)- **Base Model**: [Qwen/Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct)- **Model Type**: Chat Completions- **Prompt Format**: ChatML- **License**: Apache-2.0- **Language**: English- **Tokenizer**: [Qwen/Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct)- **Max Input Tokens**: 32,768- **Max Output Tokens**: 8,192### Features- **Fine-tuned for Role-Play**: Specially trained to generate dynamic and contextually rich role-play dialogues.- **Efficient**: Compact model size allows for faster inference and reduced computational resources.- **Parameter Support**:- `temperature`- `top_p`- `top_k`- `frequency_penalty`- `presence_penalty`- `max_tokens`### Metadata- **Owned by**: Oxygen (oxyapi)- **Contributors**: TornadoSoftwares- **Description**: A Qwen/Qwen2.5-14B-Instruct fine-tune for role-play trained on custom datasets## UsageTo utilize Oxy 1 Small for text generation in role-play scenarios, you can load the model using the Hugging Face Transformers library:```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizertokenizer = AutoTokenizer.from_pretrained("oxyapi/oxy-1-small")model = AutoModelForCausalLM.from_pretrained("oxyapi/oxy-1-small")prompt = "You are a wise old wizard in a mystical land. A traveler approaches you seeking advice."inputs = tokenizer(prompt, return_tensors="pt")outputs = model.generate(**inputs, max_length=500)response = tokenizer.decode(outputs[0], skip_special_tokens=True)print(response)```## PerformancePerformance benchmarks for Oxy 1 Small are not available at this time. Future updates may include detailed evaluations on relevant datasets.## LicenseThis model is licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).## CitationIf you find Oxy 1 Small useful in your research or applications, please cite it as:```@misc{oxy1small2024,title={Oxy 1 Small: A Fine-Tuned Qwen2.5-14B-Instruct Model for Role-Play},author={Oxygen (oxyapi)},year={2024},howpublished={\url{https://huggingface.co/oxyapi/oxy-1-small}},}```# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_oxyapi__oxy-1-small)| Metric |Value||-------------------|----:||Avg. |33.14||IFEval (0-Shot) |62.45||BBH (3-Shot) |41.18||MATH Lvl 5 (4-Shot)|18.28||GPQA (0-shot) |16.22||MuSR (0-shot) |16.28||MMLU-PRO (5-shot) |44.45|
README.md+210-198