From 36fad077a58479d4395a10bffae405bf6744965f Mon Sep 17 00:00:00 2001 From: Cherrytest Date: Fri, 18 Apr 2025 18:06:26 +0000 Subject: [PATCH] Upload folder using ModelScope SDK --- README.md | 92 ++++++++++++++++++-------------- configuration.json | 1 + pictor-1338-qwenp-1.5b-q8_0.gguf | 3 ++ 3 files changed, 56 insertions(+), 40 deletions(-) create mode 100644 configuration.json create mode 100644 pictor-1338-qwenp-1.5b-q8_0.gguf diff --git a/README.md b/README.md index c777499..93857dc 100644 --- a/README.md +++ b/README.md @@ -1,47 +1,59 @@ --- -license: Apache License 2.0 - -#model-type: -##如 gpt、phi、llama、chatglm、baichuan 等 -#- gpt - -#domain: -##如 nlp、cv、audio、multi-modal -#- nlp - -#language: -##语言代码列表 https://help.aliyun.com/document_detail/215387.html?spm=a2c4g.11186623.0.0.9f8d7467kni6Aa -#- cn - -#metrics: -##如 CIDEr、Blue、ROUGE 等 -#- CIDEr - -#tags: -##各种自定义,包括 pretrained、fine-tuned、instruction-tuned、RL-tuned 等训练方法和其他 -#- pretrained - -#tools: -##如 vllm、fastchat、llamacpp、AdaSeq 等 -#- vllm +base_model: prithivMLmods/Pictor-1338-QwenP-1.5B +language: +- en +library_name: transformers +license: apache-2.0 +pipeline_tag: text-generation +tags: +- text-generation-inference +- RL +- Code +- Math +- llama-cpp +- gguf-my-repo --- -### 当前模型的贡献者未提供更加详细的模型介绍。模型文件和权重,可浏览“模型文件”页面获取。 -#### 您可以通过如下git clone命令,或者ModelScope SDK来下载模型 -SDK下载 +# prithivMLmods/Pictor-1338-QwenP-1.5B-Q8_0-GGUF +This model was converted to GGUF format from [`prithivMLmods/Pictor-1338-QwenP-1.5B`](https://huggingface.co/prithivMLmods/Pictor-1338-QwenP-1.5B) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space. +Refer to the [original model card](https://huggingface.co/prithivMLmods/Pictor-1338-QwenP-1.5B) for more details on the model. + +## Use with llama.cpp +Install llama.cpp through brew (works on Mac and Linux) + ```bash -#安装ModelScope -pip install modelscope +brew install llama.cpp + ``` -```python -#SDK模型下载 -from modelscope import snapshot_download -model_dir = snapshot_download('prithivMLmods/Pictor-1338-QwenP-1.5B-Q8_0-GGUF') -``` -Git下载 -``` -#Git模型下载 -git clone https://www.modelscope.cn/prithivMLmods/Pictor-1338-QwenP-1.5B-Q8_0-GGUF.git +Invoke the llama.cpp server or the CLI. + +### CLI: +```bash +llama-cli --hf-repo prithivMLmods/Pictor-1338-QwenP-1.5B-Q8_0-GGUF --hf-file pictor-1338-qwenp-1.5b-q8_0.gguf -p "The meaning to life and the universe is" ``` -

如果您是本模型的贡献者,我们邀请您根据模型贡献文档,及时完善模型卡片内容。

\ No newline at end of file +### Server: +```bash +llama-server --hf-repo prithivMLmods/Pictor-1338-QwenP-1.5B-Q8_0-GGUF --hf-file pictor-1338-qwenp-1.5b-q8_0.gguf -c 2048 +``` + +Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well. + +Step 1: Clone llama.cpp from GitHub. +``` +git clone https://github.com/ggerganov/llama.cpp +``` + +Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux). +``` +cd llama.cpp && LLAMA_CURL=1 make +``` + +Step 3: Run inference through the main binary. +``` +./llama-cli --hf-repo prithivMLmods/Pictor-1338-QwenP-1.5B-Q8_0-GGUF --hf-file pictor-1338-qwenp-1.5b-q8_0.gguf -p "The meaning to life and the universe is" +``` +or +``` +./llama-server --hf-repo prithivMLmods/Pictor-1338-QwenP-1.5B-Q8_0-GGUF --hf-file pictor-1338-qwenp-1.5b-q8_0.gguf -c 2048 +``` diff --git a/configuration.json b/configuration.json new file mode 100644 index 0000000..bbeeda1 --- /dev/null +++ b/configuration.json @@ -0,0 +1 @@ +{"framework": "pytorch", "task": "text-generation", "allow_remote": true} \ No newline at end of file diff --git a/pictor-1338-qwenp-1.5b-q8_0.gguf b/pictor-1338-qwenp-1.5b-q8_0.gguf new file mode 100644 index 0000000..9d3be4e --- /dev/null +++ b/pictor-1338-qwenp-1.5b-q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:19848304794076009f5e6395d604c8cc5c193deb9c473f2acd65fa99165e6eec +size 135