Questions tagged [alpaca]

45 questions
4
votes
3 answers

Dalai Alpaca install failing to run, invalid model file 'models/7B/ggml-model-q4_0.bin'

I started out trying to get Dalai Alpaca to work, as seen here, and installed it with Docker Compose by following the commands in the readme: docker compose build docker compose run dalai npx dalai alpaca install 7B docker compose up -d And it…
4
votes
3 answers

ImportError: cannot import name 'LLaMATokenizer' from 'transformers'

I am not able to import LLaMATokenizer Any solution for this problem? I am using the code of this repo. https://github.com/zphang/transformers/tree/llama_push and trying to load the models and tokenizer using tokenizer =…
ScrapperMaster
  • 47
  • 1
  • 1
  • 3
3
votes
3 answers

AssertionError: No inf checks were recorded for this optimizer

Code was based off on https://github.com/tloen/alpaca-lora/blob/main/finetune.py My objective of this training was to made use of unsupervised training dataset to get the model to understand how words are written in my domain (basically masked…
John Jam
  • 185
  • 1
  • 1
  • 17
2
votes
0 answers

How to fuse 4-bit LLAMA weights with LoRA ones into one .pt file?

I followed this manual and got llama-7b-hf-int4 (got llama-7b-4bit.pt ) and samwit/alpaca7B-lora (got adapter_model.bin). Now I want to merge them into a single .pt 4bit model. How to do such a thing? Why I need this: current lama.cpp supports only…
DuckQueen
  • 772
  • 10
  • 62
  • 134
1
vote
1 answer

Alpaca sell order in Perl

I have read the LWP documentation, the Alpaca API documentation for its primitives, and numerous examples in other languages. I can't get POSTs to work in Perl. GETS work fine. POSTs work fine in curl or Python, but I can't find the right syntax for…
dude
  • 11
  • 2
1
vote
1 answer

alpaca-py StopOrderRequest bug related to status of bracket legs

Using the alpaca-py library, I am trying to create a new order using the StopOrderRequest with brackets. The result is this error message: File "G:\...functions.py", line 80, in trading_client.submit_order(order_request) File…
0
votes
0 answers

How do I get data through my alpaca datastream?

I am trying to get live stock data through my Alpaca API, however, when I run my script, nothing happens at all. Here is the script. from alpaca.data.live import StockDataStream async def quote_handler(quote): print(quote) stream =…
MaxPC08
  • 92
  • 7
0
votes
0 answers

How can I connect to polygon.io web socket via Alpaca?

Whenever I try to use the command: wscat -c wss://alpaca.socket.polygon.io/stocks I get the following error message displayed: error: self-signed certificate I'm using PyCharm on my 2022 MacBook Air. Can anyone help here? tried this what I found…
LL_1212
  • 1
  • 1
0
votes
0 answers

AttributeError: 'str' object has no attribute 't', can someone help me correct this code?

i want to loop and iterates over a list of symbols in chunks and retrieves daily bars data using my alpaca API credentials. Then inserts the retrieved data into a database table named stock_price using SQL INSERT statements. i run the code and was…
fredderby
  • 1
  • 1
0
votes
0 answers

import chalice could not be resolved

im trying to create a trading bot and i got stuck with this problem. problem: Import "chalice" could not be resolved Code: from chalice import Chalice app = Chalice(app_name='trading-bot') @app.route('/', methods=['POST']) def…
0
votes
0 answers

Connecting to Wscat and having authorization error

I used this to connect: wscat --connect wss://api.alpaca.markets/stream then used {"action": "auth", "key": "key", "secret": "key"} and got this error: {"stream":"authorization","data":{"action":"auth","message":"access key verification…
0
votes
0 answers

debug websocket to connect python to alpaca broker

i receive this error Connessione WebSocket aperta send: b'\x8a\x80\x1fB\x9d\xb9' DEBUG:websocket:send: b'\x8a\x80\x1fB\x9d\xb9' send: b'\x8a\x80l\xcf\x7f\xe9' DEBUG:websocket:send: b'\x8a\x80l\xcf\x7f\xe9' send:…
ire
  • 11
  • 3
0
votes
0 answers

wscat connection unexpected server response: 403

I'm new to alpaca trading. Ran wscat -c wss://data.alpaca.markets/stream to connect and got error 403. Looks like an authorization thing. I tried using wscat --auth but got the error The '<' operator is reserved for future use. Please…
0
votes
0 answers

Microsoft Visual C++ Build Tools Requires SetUp Packages

I am trying to pip install alpaca-trade-api, but it says I need build tools. When I try to download the build tools, it's asking for setup packages? What are these packages and how do I download them, or is there an alternative solution? Thank you
Joseph38
  • 1
  • 1
  • 2
0
votes
0 answers

What is the reason behind "GPU does not support Int8 Matmul" error?

When I reproduce the repo: https://github.com/tloen/alpaca-lora, I encounter a problem. My GPU is NVIDIA RTX A6000, why it remind me my GPU does not support Int8 Matmul! Anyone else encountered this error? This is the output of running: Loading…
Fali Wang
  • 9
  • 1
1
2 3