Downloads · 30 days
0
theoracle/autotrain-lsmbq-gemma64
autotrain-lsmbq-gemma64 is a machine learning model from theoracle. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as other.
The theoracle/autotrain-lsmbq-gemma64 model stands as a specialized knowledge base on the iconic Commodore 64 (C64), trained on official manuals and augmented with data synthesized by GPT-3.5. This model, leveraging t…
Downloads · 30 days
0
Access
Public
Updated Mar 29, 2024
Repo size
257 MB
Likes
1
Public
Click a slice to open those files.
.pt157 MB · 44%
From the Hugging Face model README
The theoracle/autotrain-lsmbq-gemma64 model stands as a specialized knowledge base on the iconic Commodore 64 (C64), trained on official manuals and augmented with data synthesized by GPT-3.5. This model, leveraging the powerful Gemma 2B architecture, is designed to answer detailed questions regarding the C64, ranging from basic usage and programming to hardware troubleshooting and game tips. Although it demonstrates impressive accuracy and depth, ongoing improvements aim to refine its performance further.
To tap into the vast knowledge of the Commodore 64 through this model, follow the example Python code below:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_path = "theoracle/autotrain-lsmbq-gemma64"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(
model_path,
device_map="auto",
torch_dtype='auto'
).eval()
# Example question about the Commodore 64
prompt = '''
###human:How do I load a game from tape on the Commodore 64 \n###bot:?
'''
# Tokenize and generate the response
encoding = tokenizer(prompt, return_tensors='pt', padding=True, truncation=True, max_length=500, add_special_tokens=True)
input_ids = encoding['input_ids']
attention_mask = encoding['attention_mask']
output_ids = model.generate(
input_ids.to('cuda'),
attention_mask=attention_mask.to('cuda'),
max_new_tokens=300,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(output_ids[0], skip_special_tokens=True)
print(response)
This model is a valuable resource for:
Developed using Hugging Face's AutoTrain for streamlined and effective training, and built upon the advanced Gemma 2B architecture, this model benefits from both the depth of the original C64 documentation and the breadth of modern AI-generated content. The integration of GPT-3.5-augmented data ensures a well-rounded and comprehensive understanding of the Commodore 64.
This model is distributed under an "other" license. Users are advised to review the license terms for their intended use, ensuring compliance with any restrictions or requirements.