Q-bert commited on
Commit
e0196a9
1 Parent(s): b665872

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ def train_stock_model(stock_symbol, start_date, end_date, feature_range=(10, 100
75
  target_tensors = [t[0] for t in target]
76
 
77
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
78
- model = StockLlamaForForecasting.from_pretrained("StockLlama/StockLlama").to(device)
79
  config = LoraConfig(
80
  r=64,
81
  lora_alpha=32,
@@ -88,7 +88,7 @@ def train_stock_model(stock_symbol, start_date, end_date, feature_range=(10, 100
88
 
89
  dct = {"input_ids": seq_tensors, "label": target_tensors}
90
  dataset = Dataset.from_dict(dct)
91
- dataset.push_to_hub(repo_id)
92
  trainer = Trainer(
93
  model=model,
94
  train_dataset=dataset,
 
75
  target_tensors = [t[0] for t in target]
76
 
77
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
78
+ model = StockLlamaForForecasting.from_pretrained("StockLlama/StockLlama-base-v1").to(device)
79
  config = LoraConfig(
80
  r=64,
81
  lora_alpha=32,
 
88
 
89
  dct = {"input_ids": seq_tensors, "label": target_tensors}
90
  dataset = Dataset.from_dict(dct)
91
+ dataset.push_to_hub(f"StockLlama/{stock_symbol}-{start_date}_{end_date}")
92
  trainer = Trainer(
93
  model=model,
94
  train_dataset=dataset,