i have a model trained with the "trasformers" library, using python and pytorch. if i…
- User
i have a model trained with the "trasformers" library, using python and pytorch.
if i use a GPU, the model scale well with batches of input data, but if I perform inference using a CPU, the model dosn't scale.
any clues on how to do better?
- Assistant
GPUs typically excel at number crunching and provide better performance than x86_64 CPU architecture. You can investigate improving your Python code's performance using native machine code (usually C/C++) implementations of Python libraries. Your Python code using underlying native machine code execution will be significantly faster than your same code executing underlying Python source via the Python interpreter.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)