semvec/pypi-packages huggingface dataset:
phi2_mps 0.0.4
phi2 command line tools with apple mps support
License: MIT
Requires Python: >=3.11

# phi2-mps

<img src="./phi2_mps.jpeg" alt="image" width="50%" height="auto">

An opinionated CLI to use Microsoft Phi-2 Model on your macOS!

You should have at least 8GB of memory to run this SLM on Apple silicon 

## Start

Install `phi2-mps` with `pip`:

```bash
pip install phi2-mps
```

Download Phi-2 Model with this url:
```bash
# this may take a while,cause the model size is about 5.18G
wget https://huggingface.co/AlexWuKing/atomgradient_models/resolve/main/weights.npz
```

Run inference from any path on your computer:

```bash
# [weights.npz] should be the download path of the model file
phi2-mps --model weights.npz --prompt "Hi how are you" --max_tokens 256
```
<img src="./sample.png" alt="image" width="50%" height="auto">


> [!NOTE]
> The CLI is highly opinionated and only works on Apple MPS.

## CLI Options

The `whisper-mps` repo provides an all round support for running Whisper in various settings. More command-line support will be provided later

```
  --model MODEL-PATH
                Local model file path where you put the weights file
  --prompt PROMPT
                The prompt will send to model to gen tokens    
  --max_tokens MAX-TOKEN
                The Total number of tokens will be replied to you
```

## WE ARE HIRING
refer here: https://daxiang.feishu.cn/docx/LluCd7J38o9U5pxN3kdcpSh6nEh
starviewshare 0.1.2
A finance tool to get stock,fund and futures data
License: MIT
Requires Python: >=3.8
Keywords: finance,quant,stock,etf,futures,starviewshare

# starviewshare
观星量化--开源金融量化数据接口

[starviewshare](https://github.com/rchardzhu/starviewshare) 中文名为观星量化， 是一个用于获取股票、ETF、期货数据的免费开源 Python 库。

特点：
* 只需一行代码，可以自由切换底层数据源
* 基于akshare、efinance、miniqmt打造
* 免费开源

欢迎关注微信公众号"Python量化实战"，与您分享更多资源和信息。关注后回复加群可以与小伙伴们一起讨论问题、贡献代码


## Installation

- 通过 `pip` 安装

```bash
pip install starviewshare
```

- 通过 `pip` 更新

```bash
pip install starviewshare --upgrade
```

## Examples

- 验证安装是否成功：输出starviewshare版本

```python
import starviewshare as svs
print(svs.__version__)
```

### stock

- 股票龙虎榜
```python
import starviewshare as svs
svs.stock.get_daily_billboard()
start_date = '2023-12-08'
end_date = '2023-12-17'
svs.stock.get_daily_billboard(start_date=start_date,end_date=end_date)
```
spacy_fastlang 2.1.0
Language detection using FastText and Spacy
License: MIT
Requires Python: >=3.8,<4.0
Keywords: spacy,fasttext,language,detection

# spacy_fastlang

## Install

Assuming you have a working python environment, you can simply install it using

```
pip install spacy_fastlang
```

## Usage

The library exports a pipeline component called `language_detector` that will set two spacy extensions

- doc.\_.language = ISO code of the detected language or `xx` as a fallback
- doc.\_.language_score = confidence

```
import spacy_fastlang  # noqa: F401 # pylint: disable=unused-import
nlp = spacy.load("...")
nlp.add_pipe("language_detector")
doc = nlp(en_text)

doc._.language == "..."
doc._.language_score >= ...
```

## Options

[Check the tests](./tests/test_spacy_fastlang.py) to see more examples and available options

## License

Everythin is under `MIT` except the default model which is distributed under [Creative Commons Attribution-Share-Alike License 3.0](https://creativecommons.org/licenses/by-sa/3.0/) by facebook [here](https://fasttext.cc/docs/en/language-identification.html)