.
This commit is contained in:
parent
1eb89bcc3f
commit
3d4f4d7412
@ -296,7 +296,7 @@ object RagService {
|
|||||||
// 문자열 치환 대신 안전한 JSON 객체 빌더 사용
|
// 문자열 치환 대신 안전한 JSON 객체 빌더 사용
|
||||||
val requestBodyJson = buildJsonObject {
|
val requestBodyJson = buildJsonObject {
|
||||||
put("model", "local-model")
|
put("model", "local-model")
|
||||||
put("temperature", 0.1) // 0.1 유지 (결정론적 응답)
|
put("temperature", 0.0) // 0.1 유지 (결정론적 응답)
|
||||||
put("top_p", 0.9)
|
put("top_p", 0.9)
|
||||||
put("max_tokens", 500)
|
put("max_tokens", 500)
|
||||||
|
|
||||||
|
|||||||
@ -435,7 +435,7 @@ object AutoTradingManager {
|
|||||||
val myHoldings = balance?.holdings?.filter { it.quantity.toInt() > 0 }?.map { it.code }?.toSet() ?: emptySet()
|
val myHoldings = balance?.holdings?.filter { it.quantity.toInt() > 0 }?.map { it.code }?.toSet() ?: emptySet()
|
||||||
val pendingStocks = DatabaseFactory.findAllMonitoringTrades().map { it.code }
|
val pendingStocks = DatabaseFactory.findAllMonitoringTrades().map { it.code }
|
||||||
if (remainingCandidates.isEmpty()) {
|
if (remainingCandidates.isEmpty()) {
|
||||||
val stocks = StockUniverseLoader.loadUniverse()
|
val stocks = StockUniverseLoader.loadUniverse().shuffled().take(100)
|
||||||
println("✅ 총 ${stocks.size}개의 종목을 로드했습니다.")
|
println("✅ 총 ${stocks.size}개의 종목을 로드했습니다.")
|
||||||
stocks.forEach { (code, name) ->
|
stocks.forEach { (code, name) ->
|
||||||
// println("📌 로드됨: [$code] $name")
|
// println("📌 로드됨: [$code] $name")
|
||||||
|
|||||||
@ -28,7 +28,7 @@ object LlamaServerManager {
|
|||||||
val isWin = os.contains("win")
|
val isWin = os.contains("win")
|
||||||
val (nGpuLayers, threads) = when {
|
val (nGpuLayers, threads) = when {
|
||||||
os.contains("mac") && (arch.contains("arm64") || arch.contains("aarch64")) -> 99 to 8
|
os.contains("mac") && (arch.contains("arm64") || arch.contains("aarch64")) -> 99 to 8
|
||||||
isWin -> 40 to 12 // NUC Core Ultra 7: GPU 레이어 40 내외, 스레드 12 권장
|
isWin -> 16 to 6 // NUC Core Ultra 7: GPU 레이어 40 내외, 스레드 12 권장
|
||||||
else -> 0 to 4 // 인텔 맥 2017 등
|
else -> 0 to 4 // 인텔 맥 2017 등
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user