Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
  • Loading branch information
FL03 committed May 25, 2024
1 parent d09a22b commit b5eb4d9
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
features: [ kan, gnn, linear ]
features: [ kan, gnn, linear, transformer ]
steps:
- uses: actions/checkout@v4
- name: Publish (${{ github.event.repository.name }}-${{ matrix.features }})
Expand Down
22 changes: 11 additions & 11 deletions concision/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ linear = [
]

transformer = [
"dep:concision-transformers",
"dep:concision-transformer",
]


Expand All @@ -72,7 +72,7 @@ alloc = [
"concision-gnn?/alloc",
"concision-kan?/alloc",
"concision-linear?/alloc",
"concision-transformers?/alloc",
"concision-transformer?/alloc",
]

approx = [
Expand All @@ -81,7 +81,7 @@ approx = [
"concision-gnn?/approx",
"concision-kan?/approx",
"concision-linear?/approx",
"concision-transformers?/approx",
"concision-transformer?/approx",
]

rand = [
Expand All @@ -90,7 +90,7 @@ rand = [
"concision-gnn?/rand",
"concision-kan?/rand",
"concision-linear?/rand",
"concision-transformers?/rand",
"concision-transformer?/rand",
]

serde = [
Expand All @@ -99,7 +99,7 @@ serde = [
"concision-gnn?/serde",
"concision-kan?/serde",
"concision-linear?/serde",
"concision-transformers?/serde",
"concision-transformer?/serde",
]

tracing = [
Expand All @@ -108,7 +108,7 @@ tracing = [
"concision-gnn?/tracing",
"concision-kan?/tracing",
"concision-linear?/tracing",
"concision-transformers?/tracing",
"concision-transformer?/tracing",
]

# ********* [FF] Environment(s) *********
Expand All @@ -119,7 +119,7 @@ std = [
"concision-gnn?/std",
"concision-kan?/std",
"concision-linear?/std",
"concision-transformers?/std",
"concision-transformer?/std",
]

wasm = [
Expand All @@ -128,7 +128,7 @@ wasm = [
"concision-gnn?/wasm",
"concision-kan?/wasm",
"concision-linear?/wasm",
"concision-transformers?/wasm",
"concision-transformer?/wasm",
]

wasi = [
Expand All @@ -137,7 +137,7 @@ wasi = [
"concision-gnn?/wasi",
"concision-kan?/wasi",
"concision-linear?/wasi",
"concision-transformers?/wasi",
"concision-transformer?/wasi",
]

# ********* [FF] Blas *********
Expand All @@ -147,7 +147,7 @@ blas = [
"concision-gnn?/blas",
"concision-kan?/blas",
"concision-linear?/blas",
"concision-transformers?/blas",
"concision-transformer?/blas",
]

intel-mkl-system = [
Expand Down Expand Up @@ -226,7 +226,7 @@ optional = true
path = "../models/linear"
version = "0.1.14"

[dependencies.concision-transformers]
[dependencies.concision-transformer]
optional = true
path = "../models/transformers"
version = "0.1.14"
Expand Down
4 changes: 2 additions & 2 deletions concision/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub use concision_linear as linear;
pub use concision_macros::*;
#[cfg(feature = "transformer")]
#[doc(inline)]
pub use concision_transformers as transformer;
pub use concision_transformer as transformer;

pub mod prelude {
pub use concision_core::prelude::*;
Expand All @@ -46,5 +46,5 @@ pub mod prelude {
#[cfg(feature = "macros")]
pub use concision_macros::*;
#[cfg(feature = "transformer")]
pub use concision_transformers::prelude::*;
pub use concision_transformer::prelude::*;
}
2 changes: 1 addition & 1 deletion models/transformers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "concision-transformers"
name = "concision-transformer"
readme.workspace = true
repository.workspace = true
version.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions models/transformers/tests/attention.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
Contrib: FL03 <jo3mccain@icloud.com>
*/
extern crate concision_core as concision;
extern crate concision_transformers as transformers;
extern crate concision_transformer as transformer;

use approx::AbsDiffEq;
use transformers::AttentionHead;
use transformer::AttentionHead;

use ndarray::prelude::*;

Expand Down
4 changes: 2 additions & 2 deletions models/transformers/tests/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
Contrib: FL03 <jo3mccain@icloud.com>
*/
extern crate concision_core as concision;
extern crate concision_transformers as transformers;
extern crate concision_transformer as transformer;
extern crate ndarray as nd;

use concision::linarr;
use nd::prelude::*;
use transformers::ops::*;
use transformer::ops::*;

pub const HEADS: usize = 2;
pub const ORDER: nd::Order = nd::Order::RowMajor;
Expand Down
4 changes: 2 additions & 2 deletions models/transformers/tests/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
Contrib: FL03 <jo3mccain@icloud.com>
*/
extern crate concision_core as concision;
extern crate concision_transformers as transformers;
extern crate concision_transformer as transformer;

use concision::{linarr, Matmul};
use transformers::Qkv;
use transformer::Qkv;

use ndarray::prelude::*;

Expand Down

0 comments on commit b5eb4d9

Please sign in to comment.