Run this model with HF Jobs
Run Writer/InstructPalmyra-20b 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/Writer/InstructPalmyra-20b. 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/Writer/InstructPalmyra-20b 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/Writer/InstructPalmyra-20b. 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/Writer/InstructPalmyra-20b. 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 Writer/InstructPalmyra-20b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Writer/InstructPalmyra-20b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Writer/InstructPalmyra-20b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Writer/InstructPalmyra-20b") model = AutoModelForCausalLM.from_pretrained("Writer/InstructPalmyra-20b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Writer/InstructPalmyra-20b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Writer/InstructPalmyra-20b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Writer/InstructPalmyra-20b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Writer/InstructPalmyra-20b
- SGLang
How to use Writer/InstructPalmyra-20b 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 "Writer/InstructPalmyra-20b" \ --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": "Writer/InstructPalmyra-20b", "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 "Writer/InstructPalmyra-20b" \ --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": "Writer/InstructPalmyra-20b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Writer/InstructPalmyra-20b with Docker Model Runner:
docker model run hf.co/Writer/InstructPalmyra-20b
Update README.md
Browse files4 unmodified lines567891011121314151665 unmodified lines8283848586875 unmodified lines939495969798994 unmodified linestags:- InstructGPT- hf---# InstructPalmyra-20b<style>img {display: inline;65 unmodified linesInstructPalmyra was trained on Writer’s custom data. As with all language models, it is difficult to predict how InstructPalmyra will respond to specific prompts, and offensive content may appear unexpectedly. We recommend that the outputs be curated or filtered by humans before they are released, both to censor undesirable content and to improve the quality of the results.## Citation and Related Information5 unmodified linestitle = {{InstructPalmyra-20b : Instruct tuned Palmyra-Large model}},howpublished = {\url{https://dev.writer.com}},year = 2023,month = July}```[](#model-architecture)|[](#model-architecture)|[](#datasets)|4 unmodified lines567891011121314151617181920212223242565 unmodified lines9192939495969798991001011021031041051061071081091101111125 unmodified lines1181191201211221231244 unmodified linestags:- InstructGPT- hfdatasets:- Writer/palmyra-data-index---# InstructPalmyra-20b- **Developed by:** [https://writer.com/](https://writer.com/);- **Model type:** Causal decoder-only;- **Language(s) (NLP):** English;- **License:** Apache 2.0;- **Finetuned from model:** [Palmyra-20B](https://huggingface.co/Writer/palmyra-large).<style>img {display: inline;65 unmodified linesInstructPalmyra was trained on Writer’s custom data. As with all language models, it is difficult to predict how InstructPalmyra will respond to specific prompts, and offensive content may appear unexpectedly. We recommend that the outputs be curated or filtered by humans before they are released, both to censor undesirable content and to improve the quality of the results.## Uses### Out-of-Scope UseProduction use without adequate assessment of risks and mitigation; any use cases which may be considered irresponsible or harmful.## Bias, Risks, and LimitationsPalmyra-Med-20B is mostly trained on English data, and will not generalize appropriately to other languages. Furthermore, as it is trained on a large-scale corpora representative of the web, it will carry the stereotypes and biases commonly encountered online.### RecommendationsWe recommend users of Palmyra-Med-20B to develop guardrails and to take appropriate precautions for any production use.## Citation and Related Information5 unmodified linestitle = {{InstructPalmyra-20b : Instruct tuned Palmyra-Large model}},howpublished = {\url{https://dev.writer.com}},year = 2023,month = Augest}```[](#model-architecture)|[](#model-architecture)|[](#datasets)|
README.md+26-1