Untitled

HTML/XML Detected Guest 4 Views Size: 9.76 KB Posted on: Jun 18, 26 @ 6:23 AM
  1. 1(hf_env) honey@vultr:~/local-hf-model$ python3 host_model.py
  2. 2Loading model and tokenizer locally...
  3. 3Traceback (most recent call last):
  4. 4 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 761, in hf_raise_for_status
  5. 5 response.raise_for_status()
  6. 6 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/httpx/_models.py", line 829, in raise_for_status
  7. 7 raise HTTPStatusError(message, request=request, response=self)
  8. 8httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1/resolve/main/config.json'
  9. 9For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
  10. 10
  11. 11The above exception was the direct cause of the following exception:
  12. 12
  13. 13Traceback (most recent call last):
  14. 14 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 437, in cached_files
  15. 15 hf_hub_download(
  16. 16 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn
  17. 17 return fn(*args, **kwargs)
  18. 18 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1015, in hf_hub_download
  19. 19 return _hf_hub_download_to_cache_dir(
  20. 20 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1166, in _hf_hub_download_to_cache_dir
  21. 21 _raise_on_head_call_error(head_call_error, force_download, local_files_only)
  22. 22 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1804, in _raise_on_head_call_error
  23. 23 raise head_call_error
  24. 24 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1690, in _get_metadata_or_catch_error
  25. 25 metadata = get_hf_file_metadata(
  26. 26 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn
  27. 27 return fn(*args, **kwargs)
  28. 28 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1612, in get_hf_file_metadata
  29. 29 response = _httpx_follow_relative_redirects_with_backoff(
  30. 30 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 692, in _httpx_follow_relative_redirects_with_backoff
  31. 31 hf_raise_for_status(response)
  32. 32 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 835, in hf_raise_for_status
  33. 33 raise _format(RepositoryNotFoundError, message, response, repo_type=repo_type, repo_id=repo_id) from e
  34. 34huggingface_hub.errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-6a338cd5-5aee14fd6680dad26011deb7;0744ba58-09fc-411f-8661-50abb2111b4d)
  35. 35
  36. 36Repository Not Found for url: https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1/resolve/main/config.json.
  37. 37Please make sure you specified the correct `repo_id` and `repo_type`.
  38. 38If you are trying to access a private or gated repo, make sure you are authenticated and your token has the required permissions.
  39. 39For more details, see https://huggingface.co/docs/huggingface_hub/authentication
  40. 40
  41. 41The above exception was the direct cause of the following exception:
  42. 42
  43. 43Traceback (most recent call last):
  44. 44 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 716, in from_pretrained
  45. 45 config = AutoConfig.from_pretrained(
  46. 46 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 376, in from_pretrained
  47. 47 config_dict, unused_kwargs = PreTrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
  48. 48 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 687, in get_config_dict
  49. 49 config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
  50. 50 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 742, in _get_config_dict
  51. 51 resolved_config_file = cached_file(
  52. 52 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 293, in cached_file
  53. 53 file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
  54. 54 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 469, in cached_files
  55. 55 raise OSError(
  56. 56OSError: TinyLlama/TinyLlama-1.1B-Chat-v1 is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
  57. 57If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `hf auth login` or by passing `token=<your_token>`
  58. 58
  59. 59During handling of the above exception, another exception occurred:
  60. 60
  61. 61Traceback (most recent call last):
  62. 62 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 761, in hf_raise_for_status
  63. 63 response.raise_for_status()
  64. 64 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/httpx/_models.py", line 829, in raise_for_status
  65. 65 raise HTTPStatusError(message, request=request, response=self)
  66. 66httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1/resolve/main/config.json'
  67. 67For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
  68. 68
  69. 69The above exception was the direct cause of the following exception:
  70. 70
  71. 71Traceback (most recent call last):
  72. 72 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 437, in cached_files
  73. 73 hf_hub_download(
  74. 74 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn
  75. 75 return fn(*args, **kwargs)
  76. 76 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1015, in hf_hub_download
  77. 77 return _hf_hub_download_to_cache_dir(
  78. 78 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1166, in _hf_hub_download_to_cache_dir
  79. 79 _raise_on_head_call_error(head_call_error, force_download, local_files_only)
  80. 80 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1804, in _raise_on_head_call_error
  81. 81 raise head_call_error
  82. 82 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1690, in _get_metadata_or_catch_error
  83. 83 metadata = get_hf_file_metadata(
  84. 84 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn
  85. 85 return fn(*args, **kwargs)
  86. 86 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1612, in get_hf_file_metadata
  87. 87 response = _httpx_follow_relative_redirects_with_backoff(
  88. 88 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 692, in _httpx_follow_relative_redirects_with_backoff
  89. 89 hf_raise_for_status(response)
  90. 90 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 835, in hf_raise_for_status
  91. 91 raise _format(RepositoryNotFoundError, message, response, repo_type=repo_type, repo_id=repo_id) from e
  92. 92huggingface_hub.errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-6a338cd5-5bfd36b22e2a9987467edd9e;1e66242e-c64e-4227-baf4-82fdcdac5ceb)
  93. 93
  94. 94Repository Not Found for url: https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1/resolve/main/config.json.
  95. 95Please make sure you specified the correct `repo_id` and `repo_type`.
  96. 96If you are trying to access a private or gated repo, make sure you are authenticated and your token has the required permissions.
  97. 97For more details, see https://huggingface.co/docs/huggingface_hub/authentication
  98. 98
  99. 99The above exception was the direct cause of the following exception:
  100. 100
  101. 101Traceback (most recent call last):
  102. 102 File "/home/honey/local-hf-model/host_model.py", line 9, in <module>
  103. 103 tokenizer = AutoTokenizer.from_pretrained(model_id)
  104. 104 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 720, in from_pretrained
  105. 105 config = PreTrainedConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
  106. 106 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 646, in from_pretrained
  107. 107 config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs)
  108. 108 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 687, in get_config_dict
  109. 109 config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
  110. 110 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 742, in _get_config_dict
  111. 111 resolved_config_file = cached_file(
  112. 112 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 293, in cached_file
  113. 113 file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
  114. 114 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 469, in cached_files
  115. 115 raise OSError(
  116. 116OSError: TinyLlama/TinyLlama-1.1B-Chat-v1 is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
  117. 117If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `hf auth login` or by passing `token=<your_token>`

Raw Paste

Comments 0
Login to post a comment.
  • No comments yet. Be the first.
Login to post a comment. Login or Register
We use cookies. To comply with GDPR in the EU and the UK we have to show you these.

We use cookies and similar technologies to keep this website functional (including spam protection via Google reCAPTCHA or Cloudflare Turnstile), and — with your consent — to measure usage and show ads. See Privacy.