Skip to content

how do you use the "lms" with an HTTP proxy? #105

@flyisland

Description

@flyisland

I can access the huggingface website with an HTTP proxy, but I can NOT "lms get" the model:

❯ export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;export ALL_PROXY=socks5://127.0.0.1:1080

❯ curl -I https://huggingface.co/mlx-community/Qwen2.5-Coder-32B-Instruct-4bit
HTTP/1.1 200 Connection established

HTTP/2 200
content-type: text/html; charset=utf-8
content-length: 125301
date: Sat, 23 Nov 2024 02:57:01 GMT
x-powered-by: huggingface-moon
cross-origin-opener-policy: same-origin
referrer-policy: strict-origin-when-cross-origin
x-request-id: Root=1-6741447d-56bdb030641c73f2273d245a
x-frame-options: DENY
etag: W/"1e975-gIL93qAZIUyeuWWl3S3gX1K7xDI"
x-cache: Miss from cloudfront
via: 1.1 eaf1f04c577c516a85c447b42f13dc78.cloudfront.net (CloudFront)
x-amz-cf-pop: NRT51-P2
x-amz-cf-id: mqM1chWzw748gX8dDscp7E6DwSMsrQfWeLwrGXwmkky0wX7aK8DJQA==


❯ lms get --mlx --verbose "mlx-community/Qwen2.5-Coder-32B-Instruct-4bit"
I Waking up LM Studio service...
D Resolved appInstallLocationPath: /Users/ichen/.cache/lm-studio/.internal/app-install-location.json
D Read executable pointer: {
  path: '/Applications/LM Studio.app/Contents/MacOS/LM Studio',
  argv: [ '/Applications/LM Studio.app/Contents/MacOS/LM Studio' ],
  cwd: '/'
}
D Spawning process: {
  path: '/Applications/LM Studio.app/Contents/MacOS/LM Studio',
  args: [ '--minimized', '--run-as-service' ],
  cwd: '/'
}
D Process spawned
D Polling the API server... (attempt 1)
D Polling the API server... (attempt 2)
D Found local API server at ws://127.0.0.1:41343
I Searching for models with the term mlx-community/Qwen2.5-Coder-32B-Instruct-4bit
D Searching for models with options {
  searchTerm: 'mlx-community/Qwen2.5-Coder-32B-Instruct-4bit',
  compatibilityTypes: [ 'safetensors' ],
  limit: undefined
}


   ┌ Error ─────────────┐
   │                    │
   │    fetch failed    │
   │                    │
   └────────────────────┘


❯

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions