Skip to content

Unable to specify dtype #1758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
drewwells opened this issue Mar 17, 2025 · 1 comment
Open

Unable to specify dtype #1758

drewwells opened this issue Mar 17, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@drewwells
Copy link

drewwells commented Mar 17, 2025

Bug description

Warning in the logs about specifying dtype. It's infering the support of the CPU rather than the metal GPU I am using (apple m4).

Steps to reproduce

Start chat-ui with a model I'm using Deepseek-R1 gguf
Start the chat-ui, view the logs

Screenshots

Context

Logs

docker-compose-chat-ui[3275734]: chat-ui  | dtype not specified for "model". Using the default dtype (fp32) for this device (cpu).

Specs

  • OS: OS X
  • Browser: Orion
  • chat-ui commit: chat-ui-db Docker Image: f82eabd33648

Config

MODELS=`[
    {
      "name": "unsloth/DeepSeek-R1-Distill-Llama-70B-GGUF",
      "id": "unsloth/DeepSeek-R1-Distill-Llama-70B-GGUF",
      "displayName": "unsloth/deepseek-r1-distill-llama-70b",
      "description": "Size: 74.98gb",
      "modelUrl": "https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-70B-GGUF",
      "websiteUrl": "https://unsloth.ai/blog/deepseek-r1",
      "logoUrl": "https://cdn-avatars.huggingface.co/v1/production/uploads/62ecdc18b72a69615d6bd857/E4lkPz1TZNLzIFr_dR273.png",
      "chunkCharLength": 768,
      "preQuery": "query: ",
      "prePassage": "passage: ",
      "parameters": {
        "temperature": 0.6,
      },
...

Notes

I can't find anything about dtype in this repo, so should be helpful just to help others find some background information here. I believe for my m4 gpu, fp32 that it keeps choosing is not ideal.

@drewwells drewwells added the bug Something isn't working label Mar 17, 2025
@nsarrazin
Copy link
Collaborator

Hi, thanks for opening the issue, I think (though I could be wrong) that GPU support is not available with transformers.js using node.

However it would be nice to have an option to control the dtype for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants