voiceCal-ai / simpletest.py
Peter Michael Gits
feat: Add Hugging Face and Groq integration with local model support
0334aca
raw
history blame contribute delete
449 Bytes
from transformers import AutoTokenizer
# Test if you can access the model
try:
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
print("βœ… Qwen2.5-7B-Instruct - Access granted!")
except Exception as e:
print(f"❌ Error: {e}")
try:
tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-128k-instruct")
print("βœ… Phi-3-mini - Access granted!")
except Exception as e:
print(f"❌ Error: {e}")