Text Generation
Transformers
Safetensors
English
llama
text2text-generation
conversational
text-generation-inference
Instructions to use pankajmathur/orca_mini_v6_8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pankajmathur/orca_mini_v6_8b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pankajmathur/orca_mini_v6_8b") 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("pankajmathur/orca_mini_v6_8b") model = AutoModelForCausalLM.from_pretrained("pankajmathur/orca_mini_v6_8b", 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 pankajmathur/orca_mini_v6_8b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pankajmathur/orca_mini_v6_8b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pankajmathur/orca_mini_v6_8b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/pankajmathur/orca_mini_v6_8b
- SGLang
How to use pankajmathur/orca_mini_v6_8b 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 "pankajmathur/orca_mini_v6_8b" \ --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": "pankajmathur/orca_mini_v6_8b", "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 "pankajmathur/orca_mini_v6_8b" \ --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": "pankajmathur/orca_mini_v6_8b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use pankajmathur/orca_mini_v6_8b with Docker Model Runner:
docker model run hf.co/pankajmathur/orca_mini_v6_8b
Commit History
-
Update README.md
Verified signaturea8f20b1
-
Delete open-llm-lb-2-evals-log/results_2024-07-09T18-34-22.230254.json
Verified signature217b1f0 -
Delete open-llm-lb-2-evals-log/results_2024-07-09T18-00-57.755998.json
Verified signature6417927 -
Delete open-llm-lb-2-evals-log/results_2024-07-09T17-41-22.805410.json
Verified signature6e581e7 -
Upload 4 files
Verified signaturea15e513 -
Delete open-llm-lb-2-evals-log/results_2024-07-09T17-18-18.650798.json
Verified signatureafda7a9 -
Uploaded LM Evaluation Harness Leaderboard evaluatioins logs
Verified signatureThese are the logs which were output while running steps mentioned in official doc: https://huggingface.co/docs/leaderboards/open_llm_leaderboard/about and https://github.com/EleutherAI/lm-evaluation-harness/blob/main/lm_eval/tasks/leaderboard/README.md0eba8f0
-
Update README.md
Verified signaturec24dbe1 -
Update README.md
Verified signaturecd22a6e
-
Update README.md
Verified signature9d9805b -
Update README.md
Verified signature41e83d3 -
Adding Evaluation Results (#1)
Verified signature- Adding Evaluation Results (42f95b3a690ae4e294f1ac2524ab4993a62dfb68) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>a894ba4
-
Update README.md
Verified signaturee95dc8e -
Update README.md
Verified signaturec15c4c7 -
from train server to HF
345ae9c -
initial commit
Verified signature9ae7878