Text Generation
Transformers
Safetensors
English
llama
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use dhanushreddy29/BrokenKeyboard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dhanushreddy29/BrokenKeyboard with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dhanushreddy29/BrokenKeyboard") 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("dhanushreddy29/BrokenKeyboard") model = AutoModelForCausalLM.from_pretrained("dhanushreddy29/BrokenKeyboard", 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 dhanushreddy29/BrokenKeyboard with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dhanushreddy29/BrokenKeyboard" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dhanushreddy29/BrokenKeyboard", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dhanushreddy29/BrokenKeyboard
- SGLang
How to use dhanushreddy29/BrokenKeyboard 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 "dhanushreddy29/BrokenKeyboard" \ --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": "dhanushreddy29/BrokenKeyboard", "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 "dhanushreddy29/BrokenKeyboard" \ --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": "dhanushreddy29/BrokenKeyboard", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use dhanushreddy29/BrokenKeyboard with Docker Model Runner:
docker model run hf.co/dhanushreddy29/BrokenKeyboard
Adding Evaluation Results (#1)
Browse files- Adding Evaluation Results (229dbf091210ebc5d54434352854a439dbcc74ed)
Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>
1234567891011121314---datasets:- argilla/distilabel-intel-orca-dpo-pairslanguage:- enlicense: cc-by-nc-4.0base_model:- upstage/SOLAR-10.7B-Instruct-v1.0---# Model Card for Model ID<!-- Provide a quick summary of what the model is/does. -->Just testing out LLM Finetuning. Finetuned on [upstage/SOLAR-10.7B-Instruct-v1.0](https://huggingface.co/upstage/SOLAR-10.7B-Instruct-v1.0) using [argilla/distilabel-intel-orca-dpo-pairs](https://huggingface.co/datasets/argilla/distilabel-intel-orca-dpo-pairs).Followed the Google Colab mentioned in this article: [https://towardsdatascience.com/fine-tune-a-mistral-7b-model-with-direct-preference-optimization-708042745aac](https://towardsdatascience.com/fine-tune-a-mistral-7b-model-with-direct-preference-optimization-708042745aac)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131---language:- enlicense: cc-by-nc-4.0datasets:- argilla/distilabel-intel-orca-dpo-pairsbase_model:- upstage/SOLAR-10.7B-Instruct-v1.0model-index:- name: BrokenKeyboardresults:- task:type: text-generationname: Text Generationdataset:name: AI2 Reasoning Challenge (25-Shot)type: ai2_arcconfig: ARC-Challengesplit: testargs:num_few_shot: 25metrics:- type: acc_normvalue: 71.25name: normalized accuracysource:url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=dhanushreddy29/BrokenKeyboardname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: HellaSwag (10-Shot)type: hellaswagsplit: validationargs:num_few_shot: 10metrics:- type: acc_normvalue: 88.34name: normalized accuracysource:url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=dhanushreddy29/BrokenKeyboardname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: MMLU (5-Shot)type: cais/mmluconfig: allsplit: testargs:num_few_shot: 5metrics:- type: accvalue: 66.04name: accuracysource:url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=dhanushreddy29/BrokenKeyboardname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: TruthfulQA (0-shot)type: truthful_qaconfig: multiple_choicesplit: validationargs:num_few_shot: 0metrics:- type: mc2value: 71.36source:url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=dhanushreddy29/BrokenKeyboardname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: Winogrande (5-shot)type: winograndeconfig: winogrande_xlsplit: validationargs:num_few_shot: 5metrics:- type: accvalue: 83.19name: accuracysource:url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=dhanushreddy29/BrokenKeyboardname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: GSM8k (5-shot)type: gsm8kconfig: mainsplit: testargs:num_few_shot: 5metrics:- type: accvalue: 64.29name: accuracysource:url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=dhanushreddy29/BrokenKeyboardname: Open LLM Leaderboard---# Model Card for Model ID<!-- Provide a quick summary of what the model is/does. -->Just testing out LLM Finetuning. Finetuned on [upstage/SOLAR-10.7B-Instruct-v1.0](https://huggingface.co/upstage/SOLAR-10.7B-Instruct-v1.0) using [argilla/distilabel-intel-orca-dpo-pairs](https://huggingface.co/datasets/argilla/distilabel-intel-orca-dpo-pairs).Followed the Google Colab mentioned in this article: [https://towardsdatascience.com/fine-tune-a-mistral-7b-model-with-direct-preference-optimization-708042745aac](https://towardsdatascience.com/fine-tune-a-mistral-7b-model-with-direct-preference-optimization-708042745aac)# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_dhanushreddy29__BrokenKeyboard)| Metric |Value||---------------------------------|----:||Avg. |74.08||AI2 Reasoning Challenge (25-Shot)|71.25||HellaSwag (10-Shot) |88.34||MMLU (5-Shot) |66.04||TruthfulQA (0-shot) |71.36||Winogrande (5-shot) |83.19||GSM8k (5-shot) |64.29|
README.md+120-3