Instructions to use ScienceArtMagic/QWERTY with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ScienceArtMagic/QWERTY with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ScienceArtMagic/QWERTY")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ScienceArtMagic/QWERTY", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ScienceArtMagic/QWERTY with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ScienceArtMagic/QWERTY" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ScienceArtMagic/QWERTY", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ScienceArtMagic/QWERTY
- SGLang
How to use ScienceArtMagic/QWERTY 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 "ScienceArtMagic/QWERTY" \ --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": "ScienceArtMagic/QWERTY", "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 "ScienceArtMagic/QWERTY" \ --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": "ScienceArtMagic/QWERTY", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ScienceArtMagic/QWERTY with Docker Model Runner:
docker model run hf.co/ScienceArtMagic/QWERTY
| license: apache-2.0 | |
| language: | |
| - en | |
| - zh | |
| pipeline_tag: text-generation | |
| library_name: transformers | |
| # Model Card for QWERTY | |
| <!-- Provide a quick summary of what the model is/does. [Optional] --> | |
| Go Wider and Deeper (and Faster and Lower and MoE...er?) | |
| QWERTY (QWen Experts in low Rank with Tiny cache and speculative Yeets) is a Qwen-2.5-based Mixture of Experts (MoE) model leveraging speculative decoding, with all linear modules converted to low-rank approximations. | |
| # Table of Contents | |
| - [Model Card for QWERTY](#model-card-for--model_id-) | |
| - [Table of Contents](#table-of-contents) | |
| - [Table of Contents](#table-of-contents-1) | |
| - [Model Details](#model-details) | |
| - [Model Description](#model-description) | |
| - [Uses](#uses) | |
| - [Direct Use](#direct-use) | |
| - [Downstream Use [Optional]](#downstream-use-optional) | |
| - [Out-of-Scope Use](#out-of-scope-use) | |
| - [Bias, Risks, and Limitations](#bias-risks-and-limitations) | |
| - [Recommendations](#recommendations) | |
| - [Training Details](#training-details) | |
| - [Training Data](#training-data) | |
| - [Training Procedure](#training-procedure) | |
| - [Preprocessing](#preprocessing) | |
| - [Speeds, Sizes, Times](#speeds-sizes-times) | |
| - [Evaluation](#evaluation) | |
| - [Testing Data, Factors & Metrics](#testing-data-factors--metrics) | |
| - [Testing Data](#testing-data) | |
| - [Factors](#factors) | |
| - [Metrics](#metrics) | |
| - [Results](#results) | |
| - [Model Examination](#model-examination) | |
| - [Environmental Impact](#environmental-impact) | |
| - [Technical Specifications [optional]](#technical-specifications-optional) | |
| - [Model Architecture and Objective](#model-architecture-and-objective) | |
| - [Compute Infrastructure](#compute-infrastructure) | |
| - [Hardware](#hardware) | |
| - [Software](#software) | |
| - [Citation](#citation) | |
| - [Glossary [optional]](#glossary-optional) | |
| - [More Information [optional]](#more-information-optional) | |
| - [Model Card Authors [optional]](#model-card-authors-optional) | |
| - [Model Card Contact](#model-card-contact) | |
| - [How to Get Started with the Model](#how-to-get-started-with-the-model) | |
| # Model Details | |
| ## Model Description | |
| <!-- Provide a longer summary of what this model is/does. --> | |
| Go Wider and Deeper (and Faster and Lower and MoE...er?) | |
| QWERTY (QWen Experts in low Rank with Tiny cache and speculative Yeets) is a Qwen-2.5-based Mixture of Experts (MoE) model leveraging speculative decoding, with all linear modules converted to low-rank approximations. | |
| - **Developed by:** 🧪🖌🪄 | |
| - **Shared by [Optional]:** More information needed | |
| - **Model type:** Language model | |
| - **Language(s) (NLP):** mul | |
| - **License:** apache-2.0 | |
| - **Parent Model:** More information needed | |
| - **Resources for more information:** More information needed | |
| - [GitHub Repo](https://github.com/ScienceArtMagic/QWERTY) | |
| # Uses | |
| <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. --> | |
| ## Direct Use | |
| <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. --> | |
| <!-- If the user enters content, print that. If not, but they enter a task in the list, use that. If neither, say "more info needed." --> | |
| ## Downstream Use [Optional] | |
| <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app --> | |
| <!-- If the user enters content, print that. If not, but they enter a task in the list, use that. If neither, say "more info needed." --> | |
| ## Out-of-Scope Use | |
| <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. --> | |
| <!-- If the user enters content, print that. If not, but they enter a task in the list, use that. If neither, say "more info needed." --> | |
| # Bias, Risks, and Limitations | |
| <!-- This section is meant to convey both technical and sociotechnical limitations. --> | |
| Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. | |
| ## Recommendations | |
| <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. --> | |
| # Training Details | |
| ## Training Data | |
| <!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. --> | |
| More information on training data needed | |
| ## Training Procedure | |
| <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. --> | |
| ### Preprocessing | |
| More information needed | |
| ### Speeds, Sizes, Times | |
| <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. --> | |
| More information needed | |
| # Evaluation | |
| <!-- This section describes the evaluation protocols and provides the results. --> | |
| ## Testing Data, Factors & Metrics | |
| ### Testing Data | |
| <!-- This should link to a Data Card if possible. --> | |
| More information needed | |
| ### Factors | |
| <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. --> | |
| More information needed | |
| ### Metrics | |
| <!-- These are the evaluation metrics being used, ideally with a description of why. --> | |
| More information needed | |
| ## Results | |
| More information needed | |
| # Model Examination | |
| More information needed | |
| # Environmental Impact | |
| <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly --> | |
| Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). | |
| - **Hardware Type:** More information needed | |
| - **Hours used:** More information needed | |
| - **Cloud Provider:** More information needed | |
| - **Compute Region:** More information needed | |
| - **Carbon Emitted:** More information needed | |
| # Technical Specifications [optional] | |
| ## Model Architecture and Objective | |
| More information needed | |
| ## Compute Infrastructure | |
| More information needed | |
| ### Hardware | |
| More information needed | |
| ### Software | |
| More information needed | |
| # Citation | |
| <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. --> | |
| **BibTeX:** | |
| More information needed | |
| **APA:** | |
| More information needed | |
| # Glossary [optional] | |
| <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. --> | |
| More information needed | |
| # More Information [optional] | |
| More information needed | |
| # Model Card Authors [optional] | |
| <!-- This section provides another layer of transparency and accountability. Whose views is this model card representing? How many voices were included in its construction? Etc. --> | |
| 🧪🖌🪄 | |
| # Model Card Contact | |
| https://ScienceArtMagic.bsky.social | |
| # How to Get Started with the Model | |
| Use the code below to get started with the model. | |
| <details> | |
| <summary> Click to expand </summary> | |
| # ⚠️ Type of model unknown | |
| </details> |