-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
131 lines (123 loc) · 3.49 KB
/
Copy pathmix.exs
File metadata and controls
131 lines (123 loc) · 3.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
defmodule CrucibleTrain.MixProject do
use Mix.Project
@version "0.3.0"
@source_url "https://github.com/North-Shore-AI/crucible_train"
@nsai_path "../"
def project do
[
app: :crucible_train,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:ex_unit, :mix],
flags: [:error_handling, :unknown]
],
name: "CrucibleTrain",
description: "Unified ML training infrastructure for Elixir/BEAM",
source_url: @source_url,
docs: docs(),
package: package(),
test_coverage: [tool: ExCoveralls]
]
end
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test
]
]
end
def application do
[
extra_applications: [:logger],
mod: {CrucibleTrain.Application, []}
]
end
defp deps do
[
{:chz_ex, "~> 0.1.2"},
{:jason, "~> 1.4"},
{:req, "~> 0.5"},
{:telemetry, "~> 1.3"},
{:table_rex, "~> 4.0"},
{:ecto_sql, "~> 3.11"},
{:crucible_framework, path: "#{@nsai_path}crucible_framework", override: true},
{:crucible_ir, path: "#{@nsai_path}crucible_ir", override: true},
{:mox, "~> 1.1", only: :test},
{:stream_data, "~> 1.0", only: [:dev, :test]},
{:excoveralls, "~> 0.18", only: :test},
{:castore, "~> 1.0", only: :test},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.31", only: :dev, runtime: false}
]
end
defp aliases do
[
quality: ["format", "credo --strict", "dialyzer"],
test: ["test --cover"]
]
end
defp docs do
[
main: "readme",
name: "CrucibleTrain",
source_ref: "v#{@version}",
source_url: @source_url,
homepage_url: @source_url,
extras: [
"README.md",
"CHANGELOG.md",
"LICENSE",
{"examples/README.md", [title: "Examples", filename: "examples"]}
],
assets: %{"assets" => "assets"},
logo: "assets/crucible_train.svg",
groups_for_modules: [
Types: [
CrucibleTrain.Types.Datum,
CrucibleTrain.Types.ModelInput,
CrucibleTrain.Types.TensorData,
CrucibleTrain.Types.TokensWithLogprobs
],
Renderers: [
CrucibleTrain.Renderers.Renderer,
CrucibleTrain.Renderers.Types,
CrucibleTrain.Renderers.TrainOnWhat,
CrucibleTrain.Renderers.Registry
],
"Supervised Learning": [
CrucibleTrain.Supervised.Train,
CrucibleTrain.Supervised.Dataset,
CrucibleTrain.Supervised.Config
],
"Reinforcement Learning": [
CrucibleTrain.RL.Train,
CrucibleTrain.RL.Env,
CrucibleTrain.RL.EnvGroupBuilder
],
Ports: ~r/CrucibleTrain\.Ports\..*/,
Logging: ~r/CrucibleTrain\.Logging\..*/
]
]
end
defp package do
[
name: "crucible_train",
description: "Unified ML training infrastructure for Elixir/BEAM",
files: ~w(README.md CHANGELOG.md mix.exs LICENSE lib assets examples/README.md),
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Online documentation" => "https://hexdocs.pm/crucible_train"
},
maintainers: ["nshkrdotcom"]
]
end
end