Downloads · 30 days
19
7% of all-time downloads
Suru/HSS-shakha-khel-assistant
HSS-shakha-khel-assistant is a text generation model from Suru. Use it when you need the model to write or continue text. It is set up for transformers.
Welcome to the Shakha Khel Assistant, your digital helper for planning various games (Khel) for your Shakha activities. This tool leverages the LLAMA 2 7B model to provide you with a wide range of game suggestions, ta…
Downloads · 30 days
19
7% of all-time downloads
All-time downloads
284
Public
Repo size
27 GB
Likes
1
Public
Click a slice to open those files.
.bin13.5 GB · 100%
From the Hugging Face model README
Welcome to the Shakha Khel Assistant, your digital helper for planning various games (Khel) for your Shakha activities. This tool leverages the LLAMA 2 7B model to provide you with a wide range of game suggestions, tailored for the unique needs of HSS Shakha gatherings.
The Shakha Khel Assistant uses the LLAMA 2 7B model, which has been trained on a dataset specifically curated from Suru/HSS-shakha-khel. This training ensures that the game recommendations are varied, engaging, and suitable for Shakha members of all ages.
-> We will make the model load in smaller bit precision (4 bit quantization) which allow us to use free colab gpu. Make sure that GPU is enabled under runtime settings. Downlaod the required libraries
!pip install transformers accelerate bitsandbytes
Use the below code to download the model, and try it out using the prompt.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Suru/HSS-shakha-khel-assistant" # model from hugging face
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", load_in_4bit=True)
tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=True)
prompt = "Design a 'Surya Namaskar' theme khel using khel like 'mandal kho kho'."
prompt_format = f"<s>[INST] {prompt} [/INST]"
model_inputs = tokenizer(prompt_format, return_tensors="pt").to("cuda:0")
output = model.generate(**model_inputs, max_new_tokens = 1000)
print(tokenizer.decode(output[0], skip_special_tokens=True))
To get game recommendations, you can use the following types of queries:
Run HSS Shakha Khel Assistant on Your Computer
Below is an example command to the Shakha Khel Assistant and its output:

In this example, the user has asked for three different team games and three different individual pursuit games, and the assistant has provided recommendations for each.
NOTE: The instruction must be in alpaca format.Therefore we need to format the prompt accordingly. For more information, check out the article below!
We appreciate contributions from the community! If you have game suggestions or improvements to the assistant, please feel free to contribute.
For any questions or feedback, please reach out to me.
Enjoy planning your Shakha games with ease and creativity with Shakha Khel Assistant!