Upload katanemo_Arch-Router-1.5B_0.py with huggingface_hub
Browse files10 unmodified lines111213141516178 unmodified lines2627282930313210 unmodified lines# ///try:!pip install -U transformerswith open('katanemo_Arch-Router-1.5B_0.txt', 'w', encoding='utf-8') as f:f.write('Everything was good in katanemo_Arch-Router-1.5B_0.txt')except Exception as e:8 unmodified lineswith open('katanemo_Arch-Router-1.5B_0.txt', 'a', encoding='utf-8') as f:import tracebackf.write('''```CODE:!pip install -U transformers```ERROR:10 unmodified lines11121314151617181920212223248 unmodified lines333435363738394041424344454610 unmodified lines# ///try:# Use a pipeline as a high-level helperfrom transformers import pipelinepipe = pipeline("text-generation", model="katanemo/Arch-Router-1.5B")messages = [{"role": "user", "content": "Who are you?"},]pipe(messages)with open('katanemo_Arch-Router-1.5B_0.txt', 'w', encoding='utf-8') as f:f.write('Everything was good in katanemo_Arch-Router-1.5B_0.txt')except Exception as e:8 unmodified lineswith open('katanemo_Arch-Router-1.5B_0.txt', 'a', encoding='utf-8') as f:import tracebackf.write('''```CODE:# Use a pipeline as a high-level helperfrom transformers import pipelinepipe = pipeline("text-generation", model="katanemo/Arch-Router-1.5B")messages = [{"role": "user", "content": "Who are you?"},]pipe(messages)```ERROR:
katanemo_Arch-Router-1.5B_0.py+16-2